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