Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

96 lines
4.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides information about an event.</summary>
// Token: 0x02000120 RID: 288
[Token(Token = "0x2000120")]
[ComVisible(true)]
public abstract class EventDescriptor : MemberDescriptor
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EventDescriptor" /> class with the specified name and attribute array.</summary>
/// <param name="name">The name of the event.</param>
/// <param name="attrs">An array of type <see cref="T:System.Attribute" /> that contains the event attributes.</param>
// Token: 0x06000719 RID: 1817 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000719")]
[Address(RVA = "0xC56DE0", Offset = "0xC55DE0", VA = "0x180C56DE0")]
protected EventDescriptor(string name, Attribute[] attrs)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EventDescriptor" /> class with the name and attributes in the specified <see cref="T:System.ComponentModel.MemberDescriptor" />.</summary>
/// <param name="descr">A <see cref="T:System.ComponentModel.MemberDescriptor" /> that contains the name of the event and its attributes.</param>
// Token: 0x0600071A RID: 1818 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600071A")]
[Address(RVA = "0xC56DF0", Offset = "0xC55DF0", VA = "0x180C56DF0")]
protected EventDescriptor(MemberDescriptor descr)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.EventDescriptor" /> class with the name in the specified <see cref="T:System.ComponentModel.MemberDescriptor" /> and the attributes in both the <see cref="T:System.ComponentModel.MemberDescriptor" /> and the <see cref="T:System.Attribute" /> array.</summary>
/// <param name="descr">A <see cref="T:System.ComponentModel.MemberDescriptor" /> that has the name of the member and its attributes.</param>
/// <param name="attrs">An <see cref="T:System.Attribute" /> array with the attributes you want to add to this event description.</param>
// Token: 0x0600071B RID: 1819 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600071B")]
[Address(RVA = "0xC56E00", Offset = "0xC55E00", VA = "0x180C56E00")]
protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs)
{
}
/// <summary>When overridden in a derived class, gets the type of component this event is bound to.</summary>
/// <returns>A <see cref="T:System.Type" /> that represents the type of component the event is bound to.</returns>
// Token: 0x17000145 RID: 325
// (get) Token: 0x0600071C RID: 1820
[Token(Token = "0x17000145")]
public abstract Type ComponentType
{
[Token(Token = "0x600071C")]
[Address(Slot = "17")]
get;
}
/// <summary>When overridden in a derived class, gets the type of delegate for the event.</summary>
/// <returns>A <see cref="T:System.Type" /> that represents the type of delegate for the event.</returns>
// Token: 0x17000146 RID: 326
// (get) Token: 0x0600071D RID: 1821
[Token(Token = "0x17000146")]
public abstract Type EventType
{
[Token(Token = "0x600071D")]
[Address(Slot = "18")]
get;
}
/// <summary>When overridden in a derived class, gets a value indicating whether the event delegate is a multicast delegate.</summary>
/// <returns>
/// <see langword="true" /> if the event delegate is multicast; otherwise, <see langword="false" />.</returns>
// Token: 0x17000147 RID: 327
// (get) Token: 0x0600071E RID: 1822
[Token(Token = "0x17000147")]
public abstract bool IsMulticast
{
[Token(Token = "0x600071E")]
[Address(Slot = "19")]
get;
}
/// <summary>When overridden in a derived class, binds the event to the component.</summary>
/// <param name="component">A component that provides events to the delegate.</param>
/// <param name="value">A delegate that represents the method that handles the event.</param>
// Token: 0x0600071F RID: 1823
[Token(Token = "0x600071F")]
[Address(Slot = "20")]
public abstract void AddEventHandler(object component, Delegate value);
/// <summary>When overridden in a derived class, unbinds the delegate from the component so that the delegate will no longer receive events from the component.</summary>
/// <param name="component">The component that the delegate is bound to.</param>
/// <param name="value">The delegate to unbind from the component.</param>
// Token: 0x06000720 RID: 1824
[Token(Token = "0x6000720")]
[Address(Slot = "21")]
public abstract void RemoveEventHandler(object component, Delegate value);
}
}