Пример #1
0
 public MySerializeInfo(MyObjectFlags flags, MyPrimitiveFlags primitiveFlags, ushort fixedLength, DynamicSerializerDelegate dynamicSerializer, MySerializeInfo keyInfo, MySerializeInfo itemInfo)
 {
     Flags             = flags;
     PrimitiveFlags    = primitiveFlags;
     FixedLength       = fixedLength;
     KeyInfo           = keyInfo;
     ItemInfo          = itemInfo;
     DynamicSerializer = dynamicSerializer;
 }
 public MySerializeInfo(MyObjectFlags flags, MyPrimitiveFlags primitiveFlags, ushort fixedLength, DynamicSerializerDelegate dynamicSerializer, MySerializeInfo keyInfo, MySerializeInfo itemInfo)
 {
     Flags = flags;
     PrimitiveFlags = primitiveFlags;
     FixedLength = fixedLength;
     KeyInfo = keyInfo;
     ItemInfo = itemInfo;
     DynamicSerializer = dynamicSerializer;
 }
Пример #3
0
 public MySerializeInfo(SerializeAttribute attribute, MySerializeInfo keyInfo, MySerializeInfo itemInfo)
 {
     if (attribute != null)
     {
         Flags          = attribute.Flags;
         PrimitiveFlags = attribute.PrimitiveFlags;
         FixedLength    = attribute.FixedLength;
         if (IsDynamic)
         {
             Debug.Assert(attribute.DynamicSerializerType != null, "DynamicSerializerType must be set when serializing dynamically!");
             DynamicSerializer = ((IDynamicResolver)Activator.CreateInstance(attribute.DynamicSerializerType)).Serialize;
         }
     }
     KeyInfo  = keyInfo;
     ItemInfo = itemInfo;
 }
 public MySerializeInfo(SerializeAttribute attribute, MySerializeInfo keyInfo, MySerializeInfo itemInfo)
 {
     if (attribute != null)
     {
         Flags = attribute.Flags;
         PrimitiveFlags = attribute.PrimitiveFlags;
         FixedLength = attribute.FixedLength;
         if (IsDynamic)
         {
             Debug.Assert(attribute.DynamicSerializerType != null, "DynamicSerializerType must be set when serializing dynamically!");
             DynamicSerializer = ((IDynamicResolver)Activator.CreateInstance(attribute.DynamicSerializerType)).Serialize;
         }
     }
     KeyInfo = keyInfo;
     ItemInfo = itemInfo;
 }
 public SerializeAttribute(MyObjectFlags flags, ushort fixedLength)
 {
     Flags = flags;
     FixedLength = fixedLength;
 }
 public SerializeAttribute(MyObjectFlags flags, Type dynamicResolverType)
 {
     Flags = flags;
     DynamicSerializerType = dynamicResolverType;
 }
 public SerializeAttribute(MyObjectFlags flags)
 {
     Flags = flags;
 }
Пример #8
0
 public SerializeAttribute(MyObjectFlags flags, ushort fixedLength)
 {
     Flags       = flags;
     FixedLength = fixedLength;
 }
Пример #9
0
 public SerializeAttribute(MyObjectFlags flags, Type dynamicResolverType)
 {
     Flags = flags;
     DynamicSerializerType = dynamicResolverType;
 }
Пример #10
0
 public SerializeAttribute(MyObjectFlags flags)
 {
     Flags = flags;
 }