リフレクションを使えない環境で、事前コード生成で作っておく型情報。
継承階層を持ったクラスとかをシリアライズ、デシリアライズしたいという要件があって、 一般的なシリアライザーの類が使いにくかったりする。
예제 #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;
 }