mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* DefaultEventAttribute.cs: new file. svn path=/trunk/mcs/; revision=5758
44 lines
733 B
C#
44 lines
733 B
C#
//
|
|
// System.ComponentModel.DefaultEventAttribute
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
|
|
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public sealed class DefaultEventAttribute : Attribute
|
|
{
|
|
private string eventName;
|
|
|
|
public DefaultEventAttribute (string name)
|
|
{
|
|
eventName = name;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return eventName; }
|
|
}
|
|
|
|
public override bool Equals (object o)
|
|
{
|
|
if (!(o is DefaultEventAttribute))
|
|
return false;
|
|
|
|
return (((DefaultEventAttribute) o).eventName == eventName);
|
|
}
|
|
|
|
public override int GetHashCode ()
|
|
{
|
|
return base.GetHashCode ();
|
|
}
|
|
}
|
|
}
|
|
|