リフレクションを使えない環境で、事前コード生成で作っておく型情報。
継承階層を持ったクラスとかをシリアライズ、デシリアライズしたいという要件があって、 一般的なシリアライザーの類が使いにくかったりする。
示例#1
0
 public static void Register(Type t, RecordTypeInfo info) => _table[t] = info;
示例#2
0
 internal ArrayTypeInfo(RecordTypeInfo elementType)
 {
     ElementType = elementType;
 }
示例#3
0
 public static void Register(Type t, RecordTypeInfo info) => _table[t] = info;
示例#4
0
 internal ArrayTypeInfo(RecordTypeInfo elementType)
 {
     ElementType = elementType;
 }