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