Пример #1
0
 public static WSOperation GetOperation(string key)
 {
     return((string.IsNullOrEmpty(key) || ALL == null || !ALL.Any(o => o.Match(key))) ? Equal : ALL.FirstOrDefault(o => o.Match(key)));
 }
Пример #2
0
 public static WSOperation GetOperation(string key)
 {
     return((ALL != null && ALL.Any(o => o.Match(key))) ? ALL.FirstOrDefault(o => o.Match(key)) : NONE);
 }