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