public static Type GetModelType(byte constType) { if (ByteTypes.ContainsKey(constType)) { return(ByteTypes[constType]); } return(null); }
public static string GetName(byte constType) { if (ByteTypes.ContainsKey(constType)) { var type = ByteTypes[constType]; if (type != null) { return(type.Name); } } return(string.Empty); }