Beispiel #1
0
 private void MergeAliaces(IEnumerable <string> _ALIACES)
 {
     try
     {
         if (_ALIACES != null && _ALIACES.Any())
         {
             _ALIACES = _ALIACES.Select(x => x.ToLower());
             ALIACES.AddRange(_ALIACES);
             ALIACES = ALIACES.Distinct().ToList();
         }
     }
     catch (Exception) { }
 }
Beispiel #2
0
 private void init(string _NAME, IEnumerable <string> _ALIACES)
 {
     if (string.IsNullOrEmpty(_NAME))
     {
         throw new ArgumentNullException("'NAME' can not be empty");
     }
     this.NAME = _NAME;
     if (_ALIACES != null && _ALIACES.Any())
     {
         _ALIACES = _ALIACES.Select(x => x.ToLower());
         ALIACES.AddRange(_ALIACES);
         ALIACES = ALIACES.Distinct().ToList();
     }
 }