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); }
public static string ToAd(this AdProperty property) { return(property.ToString()); }
public static T GetProperty <T>(this DirectoryEntry entry, AdProperty property) { return((T)entry.Properties[property.ToString()][0]); }