Inheritance: ISerializable, IObjectReference
Example #1
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     UnitySerializationHolder.GetUnitySerializationInfo(info, 1, (string)null, (RuntimeAssembly)null);
 }
Example #2
0
 /// <include file='doc\Empty.uex' path='docs/doc[@for="Empty.GetObjectData"]/*' />
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.EmptyUnity, null, null);
 }
Example #3
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException(nameof(info));
     }
     Contract.EndContractBlock();
     UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.EmptyUnity, null, null);
 }
Example #4
0
        // Token: 0x06001560 RID: 5472 RVA: 0x0003E6C0 File Offset: 0x0003C8C0
        internal static void GetUnitySerializationInfo(SerializationInfo info, RuntimeType type)
        {
            if (type.GetRootElementType().IsGenericParameter)
            {
                type = UnitySerializationHolder.AddElementTypes(info, type);
                info.SetType(typeof(UnitySerializationHolder));
                info.AddValue("UnityType", 7);
                info.AddValue("GenericParameterPosition", type.GenericParameterPosition);
                info.AddValue("DeclaringMethod", type.DeclaringMethod, typeof(MethodBase));
                info.AddValue("DeclaringType", type.DeclaringType, typeof(Type));
                return;
            }
            int unityType = 4;

            if (!type.IsGenericTypeDefinition && type.ContainsGenericParameters)
            {
                unityType = 8;
                type      = UnitySerializationHolder.AddElementTypes(info, type);
                info.AddValue("GenericArguments", type.GetGenericArguments(), typeof(Type[]));
                type = (RuntimeType)type.GetGenericTypeDefinition();
            }
            UnitySerializationHolder.GetUnitySerializationInfo(info, unityType, type.FullName, type.GetRuntimeAssembly());
        }
Example #5
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     UnitySerializationHolder.GetTypeData(this, info, context);
 }
Example #6
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.NullUnity, null, null);
 }
Example #7
0
 // Get the serialization data for this object.
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     UnitySerializationHolder.Serialize
         (info, UnitySerializationHolder.UnityType.DBNull,
         null, null);
 }
Example #8
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     UnitySerializationHolder.GetUnitySerializationInfo(info, 2, (string)null, (RuntimeAssembly)null);
 }
Example #9
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     UnitySerializationHolder.GetUnitySerializationInfo(info, this);
 }