IWbsFieldsRepository.Reload Method
The repository caches the field instances, so normally, you always get the same IWbsField instance for a specific field. This improves performance, but it has one downside when you modify properties of the fields. As soon as you change some property of an IWbsField instance, the change is automatically available to other callers to the repository. This method helps to solve the problem.
This method detaches old cached instances and creates new instances of IWbsField that will be returned by next calls to GetFields, GetAllFields and GetField methods. All existing instances that were previously retrieved are detached from the repository. So you can make any changes to them and they will not be reflected in the repository, until you explicitly apply them with AddField, DeleteField and UpdateField.
This is especially useful when editing the fields. You can retrieve fields from the repository and then call the Reload method. Then you can freely change properties of the retrieved fields. Meanwhile, other users or code can access the repository and they get the correct original fields without your intermediate changes. When you are done, you can apply the changes back to the repository and they become available globally.