コード例 #1
0
        internal static IDictionary <ADPropertyDefinition, object> GetChangedProperties(ICollection properties, PropertyBag propertyBag)
        {
            Dictionary <ADPropertyDefinition, object> dictionary = new Dictionary <ADPropertyDefinition, object>(properties.Count);

            foreach (object obj in properties)
            {
                ADPropertyDefinition adpropertyDefinition = (ADPropertyDefinition)obj;
                if (ADDirSyncHelper.ContainsProperty(propertyBag, adpropertyDefinition))
                {
                    dictionary[adpropertyDefinition] = propertyBag[adpropertyDefinition];
                }
            }
            return(dictionary);
        }
コード例 #2
0
 private bool Contains(ProviderPropertyDefinition property)
 {
     return(ADDirSyncHelper.ContainsProperty(this.propertyBag, property));
 }