Ejemplo n.º 1
0
 public ProtoBufDataColumn(string name, int ordinal, Type dataType, ProtoBufDataType protoBufDataType)
 {
     this.Name             = name;
     this.Ordinal          = ordinal;
     this.DataType         = dataType;
     this.ProtoBufDataType = protoBufDataType;
 }
Ejemplo n.º 2
0
        public static Type GetType(ProtoBufDataType type)
        {
            Type value;

            if (TypeByProtoBufDataType.TryGetValue(type, out value))
            {
                return(value);
            }

            throw new InvalidDataException($"Undefined ProtoBufDataType '{(int)type}'.");
        }