private static IStorePropertyBag CloneToWritablePropertyBag(IStorePropertyBag propertyBag, ICollection <PropertyDefinition> loadedProperties) { MemoryPropertyBag memoryPropertyBag = new MemoryPropertyBag(); memoryPropertyBag.LoadFromStorePropertyBag(propertyBag, loadedProperties); return(memoryPropertyBag.AsIStorePropertyBag()); }
public IStorePropertyBag Convert(ADRawEntry adObject) { MemoryPropertyBag memoryPropertyBag = new MemoryPropertyBag(); IStorePropertyBag storePropertyBag = memoryPropertyBag.AsIStorePropertyBag(); this.Convert(adObject, storePropertyBag); memoryPropertyBag.SetAllPropertiesLoaded(); return(storePropertyBag); }