185 lines
9.1 KiB
C#
185 lines
9.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Mono;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Discovers the attributes of an event and provides access to event metadata.</summary>
|
|
// Token: 0x02000242 RID: 578
|
|
[Token(Token = "0x2000242")]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[ComVisible(true)]
|
|
[ComDefaultInterface(typeof(_EventInfo))]
|
|
[Serializable]
|
|
[StructLayout(0)]
|
|
public abstract class EventInfo : MemberInfo, _EventInfo
|
|
{
|
|
/// <summary>Gets the <see langword="Type" /> object of the underlying event-handler delegate associated with this event.</summary>
|
|
/// <returns>A read-only <see langword="Type" /> object representing the delegate event handler.</returns>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x17000229 RID: 553
|
|
// (get) Token: 0x060014C6 RID: 5318 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000229")]
|
|
public virtual Type EventHandlerType
|
|
{
|
|
[Token(Token = "0x60014C6")]
|
|
[Address(RVA = "0x2A06AD0", Offset = "0x2A058D0", VA = "0x182A06AD0", Slot = "18")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is an event.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is an event.</returns>
|
|
// Token: 0x1700022A RID: 554
|
|
// (get) Token: 0x060014C7 RID: 5319 RVA: 0x0000F300 File Offset: 0x0000D500
|
|
[Token(Token = "0x1700022A")]
|
|
public override MemberTypes MemberType
|
|
{
|
|
[Token(Token = "0x60014C7")]
|
|
[Address(RVA = "0x460DB0", Offset = "0x45FBB0", VA = "0x180460DB0", Slot = "7")]
|
|
get
|
|
{
|
|
return (MemberTypes)0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see langword="EventInfo" /> class.</summary>
|
|
// Token: 0x060014C8 RID: 5320 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014C8")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
protected EventInfo()
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the method used to add an event handler delegate to the event source.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the method used to add an event handler delegate to the event source.</returns>
|
|
// Token: 0x060014C9 RID: 5321 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014C9")]
|
|
[Address(RVA = "0x2A069B0", Offset = "0x2A057B0", VA = "0x182A069B0", Slot = "19")]
|
|
public MethodInfo GetAddMethod()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, retrieves the <see langword="MethodInfo" /> object for the <see cref="M:System.Reflection.EventInfo.AddEventHandler(System.Object,System.Delegate)" /> method of the event, specifying whether to return non-public methods.</summary>
|
|
/// <param name="nonPublic">
|
|
/// <see langword="true" /> if non-public methods can be returned; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the method used to add an event handler delegate to the event source.</returns>
|
|
/// <exception cref="T:System.MethodAccessException">
|
|
/// <paramref name="nonPublic" /> is <see langword="true" />, the method used to add an event handler delegate is non-public, and the caller does not have permission to reflect on non-public methods.</exception>
|
|
// Token: 0x060014CA RID: 5322
|
|
[Token(Token = "0x60014CA")]
|
|
[Address(Slot = "20")]
|
|
public abstract MethodInfo GetAddMethod(bool nonPublic);
|
|
|
|
/// <summary>When overridden in a derived class, returns the method that is called when the event is raised, specifying whether to return non-public methods.</summary>
|
|
/// <param name="nonPublic">
|
|
/// <see langword="true" /> if non-public methods can be returned; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A <see langword="MethodInfo" /> object that was called when the event was raised.</returns>
|
|
/// <exception cref="T:System.MethodAccessException">
|
|
/// <paramref name="nonPublic" /> is <see langword="true" />, the method used to add an event handler delegate is non-public, and the caller does not have permission to reflect on non-public methods.</exception>
|
|
// Token: 0x060014CB RID: 5323
|
|
[Token(Token = "0x60014CB")]
|
|
[Address(Slot = "21")]
|
|
public abstract MethodInfo GetRaiseMethod(bool nonPublic);
|
|
|
|
/// <summary>Returns the method used to remove an event handler delegate from the event source.</summary>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the method used to remove an event handler delegate from the event source.</returns>
|
|
// Token: 0x060014CC RID: 5324 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014CC")]
|
|
[Address(RVA = "0x2A06AB0", Offset = "0x2A058B0", VA = "0x182A06AB0", Slot = "22")]
|
|
public MethodInfo GetRemoveMethod()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, retrieves the <see langword="MethodInfo" /> object for removing a method of the event, specifying whether to return non-public methods.</summary>
|
|
/// <param name="nonPublic">
|
|
/// <see langword="true" /> if non-public methods can be returned; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A <see cref="T:System.Reflection.MethodInfo" /> object representing the method used to remove an event handler delegate from the event source.</returns>
|
|
/// <exception cref="T:System.MethodAccessException">
|
|
/// <paramref name="nonPublic" /> is <see langword="true" />, the method used to add an event handler delegate is non-public, and the caller does not have permission to reflect on non-public methods.</exception>
|
|
// Token: 0x060014CD RID: 5325
|
|
[Token(Token = "0x60014CD")]
|
|
[Address(Slot = "23")]
|
|
public abstract MethodInfo GetRemoveMethod(bool nonPublic);
|
|
|
|
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
|
|
/// <param name="obj">An object to compare with this instance, or <see langword="null" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060014CE RID: 5326 RVA: 0x0000F318 File Offset: 0x0000D518
|
|
[Token(Token = "0x60014CE")]
|
|
[Address(RVA = "0x1746070", Offset = "0x1744E70", VA = "0x181746070", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x060014CF RID: 5327 RVA: 0x0000F330 File Offset: 0x0000D530
|
|
[Token(Token = "0x60014CF")]
|
|
[Address(RVA = "0x2A02170", Offset = "0x2A00F70", VA = "0x182A02170", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.EventInfo" /> objects are equal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="left" /> is equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060014D0 RID: 5328 RVA: 0x0000F348 File Offset: 0x0000D548
|
|
[Token(Token = "0x60014D0")]
|
|
[Address(RVA = "0x2954E10", Offset = "0x2953C10", VA = "0x182954E10")]
|
|
public static bool operator ==(EventInfo left, EventInfo right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.EventInfo" /> objects are not equal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="left" /> is not equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060014D1 RID: 5329 RVA: 0x0000F360 File Offset: 0x0000D560
|
|
[Token(Token = "0x60014D1")]
|
|
[Address(RVA = "0x2954E60", Offset = "0x2953C60", VA = "0x182954E60")]
|
|
public static bool operator !=(EventInfo left, EventInfo right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x060014D2 RID: 5330 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D2")]
|
|
[Address(RVA = "0x2A06B50", Offset = "0x2A05950", VA = "0x182A06B50")]
|
|
private static EventInfo internal_from_handle_type(IntPtr event_handle, IntPtr type_handle)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060014D3 RID: 5331 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D3")]
|
|
[Address(RVA = "0x2A069D0", Offset = "0x2A057D0", VA = "0x182A069D0")]
|
|
internal static EventInfo GetEventFromHandle(RuntimeEventHandle handle, RuntimeTypeHandle reflectedType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000B25 RID: 2853
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000B25")]
|
|
private EventInfo.AddEventAdapter cached_add_event;
|
|
|
|
// Token: 0x02000243 RID: 579
|
|
// (Invoke) Token: 0x060014D5 RID: 5333
|
|
[Token(Token = "0x2000243")]
|
|
private delegate void AddEventAdapter(object _this, Delegate dele);
|
|
}
|
|
}
|