public ProtoBufDataColumn(string name, int ordinal, Type dataType, ProtoBufDataType protoBufDataType) { this.Name = name; this.Ordinal = ordinal; this.DataType = dataType; this.ProtoBufDataType = protoBufDataType; }
public static Type GetType(ProtoBufDataType type) { Type value; if (TypeByProtoBufDataType.TryGetValue(type, out value)) { return(value); } throw new InvalidDataException($"Undefined ProtoBufDataType '{(int)type}'."); }