using System; using System.Runtime.Serialization; namespace System.Reflection { // Token: 0x02000254 RID: 596 [Serializable] internal sealed class MonoEvent : EventInfo, ISerializable { // Token: 0x170005B0 RID: 1456 // (get) Token: 0x06001ED8 RID: 7896 RVA: 0x0007199C File Offset: 0x0006FB9C public override EventAttributes Attributes { get { return MonoEventInfo.GetEventInfo(this).attrs; } } // Token: 0x06001ED9 RID: 7897 RVA: 0x000719B8 File Offset: 0x0006FBB8 public override MethodInfo GetAddMethod(bool nonPublic) { MonoEventInfo eventInfo = MonoEventInfo.GetEventInfo(this); if (nonPublic || (eventInfo.add_method != null && eventInfo.add_method.IsPublic)) { return eventInfo.add_method; } return null; } // Token: 0x06001EDA RID: 7898 RVA: 0x000719F8 File Offset: 0x0006FBF8 public override MethodInfo GetRaiseMethod(bool nonPublic) { MonoEventInfo eventInfo = MonoEventInfo.GetEventInfo(this); if (nonPublic || (eventInfo.raise_method != null && eventInfo.raise_method.IsPublic)) { return eventInfo.raise_method; } return null; } // Token: 0x06001EDB RID: 7899 RVA: 0x00071A38 File Offset: 0x0006FC38 public override MethodInfo GetRemoveMethod(bool nonPublic) { MonoEventInfo eventInfo = MonoEventInfo.GetEventInfo(this); if (nonPublic || (eventInfo.remove_method != null && eventInfo.remove_method.IsPublic)) { return eventInfo.remove_method; } return null; } // Token: 0x06001EDC RID: 7900 RVA: 0x00071A78 File Offset: 0x0006FC78 public override MethodInfo[] GetOtherMethods(bool nonPublic) { MonoEventInfo eventInfo = MonoEventInfo.GetEventInfo(this); if (nonPublic) { return eventInfo.other_methods; } int num = 0; foreach (MethodInfo methodInfo in eventInfo.other_methods) { if (methodInfo.IsPublic) { num++; } } if (num == eventInfo.other_methods.Length) { return eventInfo.other_methods; } MethodInfo[] array = new MethodInfo[num]; num = 0; foreach (MethodInfo methodInfo2 in eventInfo.other_methods) { if (methodInfo2.IsPublic) { array[num++] = methodInfo2; } } return array; } // Token: 0x170005B1 RID: 1457 // (get) Token: 0x06001EDD RID: 7901 RVA: 0x00071B34 File Offset: 0x0006FD34 public override Type DeclaringType { get { return MonoEventInfo.GetEventInfo(this).declaring_type; } } // Token: 0x170005B2 RID: 1458 // (get) Token: 0x06001EDE RID: 7902 RVA: 0x00071B50 File Offset: 0x0006FD50 public override Type ReflectedType { get { return MonoEventInfo.GetEventInfo(this).reflected_type; } } // Token: 0x170005B3 RID: 1459 // (get) Token: 0x06001EDF RID: 7903 RVA: 0x00071B6C File Offset: 0x0006FD6C public override string Name { get { return MonoEventInfo.GetEventInfo(this).name; } } // Token: 0x06001EE0 RID: 7904 RVA: 0x00071B88 File Offset: 0x0006FD88 public override string ToString() { return this.EventHandlerType + " " + this.Name; } // Token: 0x06001EE1 RID: 7905 RVA: 0x00071BA0 File Offset: 0x0006FDA0 public override bool IsDefined(Type attributeType, bool inherit) { return MonoCustomAttrs.IsDefined(this, attributeType, inherit); } // Token: 0x06001EE2 RID: 7906 RVA: 0x00071BAC File Offset: 0x0006FDAC public override object[] GetCustomAttributes(bool inherit) { return MonoCustomAttrs.GetCustomAttributes(this, inherit); } // Token: 0x06001EE3 RID: 7907 RVA: 0x00071BB8 File Offset: 0x0006FDB8 public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return MonoCustomAttrs.GetCustomAttributes(this, attributeType, inherit); } // Token: 0x06001EE4 RID: 7908 RVA: 0x00071BC4 File Offset: 0x0006FDC4 public void GetObjectData(SerializationInfo info, StreamingContext context) { MemberInfoSerializationHolder.Serialize(info, this.Name, this.ReflectedType, this.ToString(), MemberTypes.Event); } // Token: 0x04000ABA RID: 2746 private IntPtr klass; // Token: 0x04000ABB RID: 2747 private IntPtr handle; } }