static PrefixEntity[] CreatePrefixEntity(string name, PrefixEntity[] prefixs)
 {
     if (prefixs == null || prefixs.Length == 0)
     {
         if (string.IsNullOrEmpty(name))
         {
             throw new Exception("当没有使用参数时,名称不可为空");
         }
         return new PrefixEntity[] { (ShortPrefix)(char.ToLower( name[0])), (LongOrSplitPrefix)name };
     }
     return prefixs;
 }
Beispiel #2
0
 static PrefixEntity[] CreatePrefixEntity(string name, PrefixEntity[] prefixs)
 {
     if (prefixs == null || prefixs.Length ==0)
     {
         if (string.IsNullOrEmpty(name))
         {
             throw new Exception("当没有使用参数时,名称不可为空");
         }
         return new PrefixEntity[] { (LongPrefix)name };
     }
     return prefixs;
 }