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