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