Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static object GetValue(this LdapObject dict, string key)
 {
     return(dict.TryGetValue(key, out var value) ? value : null);
 }
Exemplo n.º 3
0
 public static string[] GetStringArrayValue(this LdapObject dict, string key)
 {
     return(dict.TryGetValue(key, out var value) ? (value as string[]) : null);
 }