コード例 #1
0
 void WriteBasic(TableWriter writer, string value)
 {
     if (IsBasic)
     {
         BasicType.WriteValue(writer, value);
     }
     else if (IsEnum)
     {
         writer.WriteInt32(GetEnumValue(value));
     }
     else
     {
         throw new Exception($"当前类型不是基础类型 : {Type}");
     }
 }