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