using System;
namespace System.Runtime.InteropServices
{
/// Identifies the source interface and the class that implements the methods of the event interface that is generated when a coclass is imported from a COM type library.
// Token: 0x020002FF RID: 767
[AttributeUsage(AttributeTargets.Interface, Inherited = false)]
[ComVisible(true)]
public sealed class ComEventInterfaceAttribute : Attribute
{
/// Initializes a new instance of the class with the source interface and event provider class.
/// A that contains the original source interface from the type library. COM uses this interface to call back to the managed class.
/// A that contains the class that implements the methods of the event interface.
// Token: 0x060021D5 RID: 8661 RVA: 0x0007917C File Offset: 0x0007737C
public ComEventInterfaceAttribute(Type SourceInterface, Type EventProvider)
{
this.si = SourceInterface;
this.ep = EventProvider;
}
/// Gets the class that implements the methods of the event interface.
/// A that contains the class that implements the methods of the event interface.
// Token: 0x17000643 RID: 1603
// (get) Token: 0x060021D6 RID: 8662 RVA: 0x00079194 File Offset: 0x00077394
public Type EventProvider
{
get
{
return this.ep;
}
}
/// Gets the original source interface from the type library.
/// A containing the source interface.
// Token: 0x17000644 RID: 1604
// (get) Token: 0x060021D7 RID: 8663 RVA: 0x0007919C File Offset: 0x0007739C
public Type SourceInterface
{
get
{
return this.si;
}
}
// Token: 0x04000CEC RID: 3308
private Type si;
// Token: 0x04000CED RID: 3309
private Type ep;
}
}