private static IStorePropertyBag CloneToWritablePropertyBag(IStorePropertyBag propertyBag, ICollection <PropertyDefinition> loadedProperties)
        {
            MemoryPropertyBag memoryPropertyBag = new MemoryPropertyBag();

            memoryPropertyBag.LoadFromStorePropertyBag(propertyBag, loadedProperties);
            return(memoryPropertyBag.AsIStorePropertyBag());
        }
Example #2
0
        public IStorePropertyBag Convert(ADRawEntry adObject)
        {
            MemoryPropertyBag memoryPropertyBag = new MemoryPropertyBag();
            IStorePropertyBag storePropertyBag  = memoryPropertyBag.AsIStorePropertyBag();

            this.Convert(adObject, storePropertyBag);
            memoryPropertyBag.SetAllPropertiesLoaded();
            return(storePropertyBag);
        }