diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Emit/MethodToken.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Emit/MethodToken.cs | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/mscorlib/src/System/Reflection/Emit/MethodToken.cs b/src/mscorlib/src/System/Reflection/Emit/MethodToken.cs index 76b7279f30..0905ac922a 100644 --- a/src/mscorlib/src/System/Reflection/Emit/MethodToken.cs +++ b/src/mscorlib/src/System/Reflection/Emit/MethodToken.cs @@ -12,25 +12,28 @@ ** ** ===========================================================*/ -namespace System.Reflection.Emit { - - using System; - using System.Reflection; +using System; +using System.Reflection; + +namespace System.Reflection.Emit +{ [Serializable] public struct MethodToken { public static readonly MethodToken Empty = new MethodToken(); internal int m_method; - - internal MethodToken(int str) { - m_method=str; + + internal MethodToken(int str) + { + m_method = str; } - - public int Token { + + public int Token + { get { return m_method; } } - + public override int GetHashCode() { return m_method; @@ -43,21 +46,20 @@ namespace System.Reflection.Emit { else return false; } - + public bool Equals(MethodToken obj) { return obj.m_method == m_method; } - + public static bool operator ==(MethodToken a, MethodToken b) { return a.Equals(b); } - + public static bool operator !=(MethodToken a, MethodToken b) { return !(a == b); } - } } |