コード例 #1
0
 /// <summary>
 /// 设置字段信息
 /// </summary>
 /// <param name="field"></param>
 public void Set(BinarySerialize.FieldSize field)
 {
     Field             = field.Field;
     DeSerializeMethod = (Func <DeSerializer, object, object>) typeof(AutoCSer.Reflection.InvokeMethodRef2 <,>).MakeGenericType(typeof(DeSerializer), Field.FieldType).GetMethod("getTypeObjectReturn", BindingFlags.Static | BindingFlags.NonPublic).Invoke(null, new object[] { DeSerializer.GetDeSerializeMethod(Field.FieldType) ?? DeSerializeMethodCache.Get(Field.FieldType) });
 }