private bool ExistCurrentWhiteList(string ext) { return(CurrentWhiteList == null || CurrentWhiteList.Count <= 0 || CurrentWhiteList.Exists(item => string.Equals(item.ToLower().TrimStart('.'), ext.ToLower().TrimStart('.'), StringComparison.CurrentCultureIgnoreCase))); }
private bool ExistCurrentWhiteList(string ext) { return(CurrentWhiteList == null || CurrentWhiteList.Count <= 0 || CurrentWhiteList.Exists(item => string.Equals(item, ext, StringComparison.CurrentCultureIgnoreCase))); }