Inheritance: ISerializable, IObjectReference
Ejemplo n.º 1
0
        // ISerializable
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            Type[] genericArguments = IsGenericMethod && !IsGenericMethodDefinition
                                ? GetGenericArguments() : null;

            MemberInfoSerializationHolder.Serialize(info, Name, ReflectedType, ToString(), MemberTypes.Method, genericArguments);
        }
Ejemplo n.º 2
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.GetSerializationInfo(info, this.Name, this.ReflectedTypeHandle.GetRuntimeType(), this.ToString(), MemberTypes.Constructor);
 }
Ejemplo n.º 3
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.GetSerializationInfo(info, this.Name, this.ReflectedType, null, MemberTypes.Event);
 }
Ejemplo n.º 4
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.GetSerializationInfo(info, this.Name, this.ReflectedTypeInternal, this.ToString(), this.SerializationToString(), MemberTypes.Property, (Type[])null);
 }
Ejemplo n.º 5
0
 // Get the serialization data for this property.
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.Serialize
         (info, MemberTypes.Property, Name, null, ReflectedType);
 }
Ejemplo n.º 6
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException(nameof(info));
     }
     Contract.EndContractBlock();
     MemberInfoSerializationHolder.GetSerializationInfo(info, this);
 }
Ejemplo n.º 7
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     if (this.m_reflectedTypeCache.IsGlobal)
     {
         throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalMethodSerialization"));
     }
     MemberInfoSerializationHolder.GetSerializationInfo(info, this.Name, this.ReflectedTypeInternal, this.ToString(), MemberTypes.Method, (this.IsGenericMethod & !this.IsGenericMethodDefinition) ? this.GetGenericArguments() : null);
 }
Ejemplo n.º 8
0
 // ISerializable Implementation
 //
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.GetSerializationInfo(info,
                                                        this.Name,
                                                        this.InternalReflectedClass(false),
                                                        this.ToString(),
                                                        System.Reflection.MemberTypes.Field);
 }
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     Contract.EndContractBlock();
     MemberInfoSerializationHolder.GetSerializationInfo(
         info,
         Name,
         ReflectedTypeInternal,
         ToString(),
         MemberTypes.Field);
 }
Ejemplo n.º 10
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new ArgumentNullException(nameof(info));
            }
            Contract.EndContractBlock();

            if (m_reflectedTypeCache.IsGlobal)
            {
                throw new NotSupportedException(SR.NotSupported_GlobalMethodSerialization);
            }

            MemberInfoSerializationHolder.GetSerializationInfo(info, this);
        }
Ejemplo n.º 11
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     if (info == null)
     {
         throw new ArgumentNullException("info");
     }
     MemberInfoSerializationHolder.GetSerializationInfo(
         info,
         Name,
         ReflectedTypeInternal,
         ToString(),
         SerializationToString(),
         MemberTypes.Constructor,
         null);
 }
Ejemplo n.º 12
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            MemberInfoSerializationHolder.GetSerializationInfo(
                info,
                Name,
                ReflectedTypeInternal,
                ToString(),
                SerializationToString(),
                MemberTypes.Method,
                IsGenericMethod & !IsGenericMethodDefinition ? GetGenericArguments() : null);
        }
Ejemplo n.º 13
0
        [System.Security.SecurityCritical]  // auto-generated
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new ArgumentNullException("info");
            Contract.EndContractBlock();

            if (m_reflectedTypeCache.IsGlobal)
                throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalMethodSerialization"));

            MemberInfoSerializationHolder.GetSerializationInfo(
                info,
                Name,
                ReflectedTypeInternal,
                ToString(),
                SerializationToString(),
                MemberTypes.Method,
                IsGenericMethod & !IsGenericMethodDefinition ? GetGenericArguments() : null);
        }
Ejemplo n.º 14
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     Type[] genericArguments = (!this.IsGenericMethod || this.IsGenericMethodDefinition) ? null : this.GetGenericArguments();
     MemberInfoSerializationHolder.Serialize(info, this.Name, this.ReflectedType, this.ToString(), MemberTypes.Method, genericArguments);
 }
Ejemplo n.º 15
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     MemberInfoSerializationHolder.Serialize(info, this.Name, this.ReflectedType, this.ToString(), MemberTypes.Event);
 }
Ejemplo n.º 16
0
 // ISerializable
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     MemberInfoSerializationHolder.Serialize(info, Name, ReflectedType,
                                             ToString(), MemberTypes.Property);
 }
Ejemplo n.º 17
0
 public static void Serialize(SerializationInfo info, string name, Type klass, string signature, MemberTypes type)
 {
     MemberInfoSerializationHolder.Serialize(info, name, klass, signature, type, null);
 }
Ejemplo n.º 18
0
 // Token: 0x060045CD RID: 17869 RVA: 0x000FE6F9 File Offset: 0x000FC8F9
 public static void GetSerializationInfo(SerializationInfo info, string name, RuntimeType reflectedClass, string signature, MemberTypes type)
 {
     MemberInfoSerializationHolder.GetSerializationInfo(info, name, reflectedClass, signature, null, type, null);
 }