public static bool GetBoolenValue(this LdapObject dict, string key) { var val = dict.TryGetValue(key, out var value) ? value as string : null; bool.TryParse(val, out var result); return(result); }
public static object GetValue(this LdapObject dict, string key) { return(dict.TryGetValue(key, out var value) ? value : null); }
public static string[] GetStringArrayValue(this LdapObject dict, string key) { return(dict.TryGetValue(key, out var value) ? (value as string[]) : null); }