예제 #1
0
        internal static void RemoveChildObjectAttributes(ADObject directoryObj, MappingTable <AttributeConverterEntry> attrMapBaseObj, MappingTable <AttributeConverterEntry> attrMapChildObj)
        {
            HashSet <string> strs = new HashSet <string>(attrMapChildObj.Keys, StringComparer.OrdinalIgnoreCase);

            strs.ExceptWith(attrMapBaseObj.Keys);
            foreach (string str in strs)
            {
                directoryObj.Remove(str);
                directoryObj.AddedProperties.Remove(str);
                directoryObj.RemovedProperties.Remove(str);
            }
        }