Exemple #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);
        }
Exemple #2
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);
 }
Exemple #3
0
 // ISerializable
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     MemberInfoSerializationHolder.Serialize(info, Name, ReflectedType,
                                             ToString(), MemberTypes.Property);
 }
Exemple #4
0
 public static void Serialize(SerializationInfo info, string name, Type klass, string signature, MemberTypes type)
 {
     MemberInfoSerializationHolder.Serialize(info, name, klass, signature, type, null);
 }
Exemple #5
0
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     MemberInfoSerializationHolder.Serialize(info, this.Name, this.ReflectedType, this.ToString(), MemberTypes.Event);
 }
 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);
 }