示例#1
0
 public static Type GetModelType(byte constType)
 {
     if (ByteTypes.ContainsKey(constType))
     {
         return(ByteTypes[constType]);
     }
     return(null);
 }
示例#2
0
        public static string GetName(byte constType)
        {
            if (ByteTypes.ContainsKey(constType))
            {
                var type = ByteTypes[constType];
                if (type != null)
                {
                    return(type.Name);
                }
            }

            return(string.Empty);
        }