scripts
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
|
||||
namespace System.ComponentModel
|
||||
{
|
||||
/// <summary>Specifies the default event for a component.</summary>
|
||||
// Token: 0x0200006C RID: 108
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class DefaultEventAttribute : Attribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DefaultEventAttribute" /> class.</summary>
|
||||
/// <param name="name">The name of the default event for the component this attribute is bound to. </param>
|
||||
// Token: 0x060003F5 RID: 1013 RVA: 0x0000C130 File Offset: 0x0000A330
|
||||
public DefaultEventAttribute(string name)
|
||||
{
|
||||
this.eventName = name;
|
||||
}
|
||||
|
||||
/// <summary>Gets the name of the default event for the component this attribute is bound to.</summary>
|
||||
/// <returns>The name of the default event for the component this attribute is bound to. The default value is null.</returns>
|
||||
// Token: 0x17000110 RID: 272
|
||||
// (get) Token: 0x060003F7 RID: 1015 RVA: 0x0000C150 File Offset: 0x0000A350
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.eventName;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Returns whether the value of the given object is equal to the current <see cref="T:System.ComponentModel.DefaultEventAttribute" />.</summary>
|
||||
/// <returns>true if the value of the given object is equal to that of the current; otherwise, false.</returns>
|
||||
/// <param name="obj">The object to test the value equality of. </param>
|
||||
// Token: 0x060003F8 RID: 1016 RVA: 0x0000C158 File Offset: 0x0000A358
|
||||
public override bool Equals(object o)
|
||||
{
|
||||
return o is DefaultEventAttribute && ((DefaultEventAttribute)o).eventName == this.eventName;
|
||||
}
|
||||
|
||||
/// <summary>Returns the hash code for this instance.</summary>
|
||||
/// <returns>A 32-bit signed integer hash code.</returns>
|
||||
// Token: 0x060003F9 RID: 1017 RVA: 0x0000C180 File Offset: 0x0000A380
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x04000147 RID: 327
|
||||
private string eventName;
|
||||
|
||||
/// <summary>Specifies the default value for the <see cref="T:System.ComponentModel.DefaultEventAttribute" />, which is null. This static field is read-only.</summary>
|
||||
// Token: 0x04000148 RID: 328
|
||||
public static readonly DefaultEventAttribute Default = new DefaultEventAttribute(null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user