示例#1
0
 public static bool ContainsIgnoreCase(IEnumerable <string> list, string target)
 {
     return(list != null && list.Any(element => StringUtils.EqualsIgnoreCase(element, target)));
 }
示例#2
0
        public static object GetValueIgnoreCase(IDictionary <string, object> dict, string key)
        {
            var item = dict?.FirstOrDefault(x => StringUtils.EqualsIgnoreCase(x.Key, key));

            return(item?.Value);
        }