Example #1
0
        public static T SetProperty <T>(this DirectoryEntry entry, AdProperty property, T value)
        {
            PropertyValueCollection item = entry.Properties[property.ToString()];
            object obj  = value;
            object obj1 = obj;

            item.Value = obj;
            return((T)obj1);
        }
Example #2
0
 public static string ToAd(this AdProperty property)
 {
     return(property.ToString());
 }
Example #3
0
 public static T GetProperty <T>(this DirectoryEntry entry, AdProperty property)
 {
     return((T)entry.Properties[property.ToString()][0]);
 }