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(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; }