diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs b/src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs index 72ab983bb9..b450b198d2 100644 --- a/src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs +++ b/src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs @@ -12,26 +12,29 @@ ** ** ===========================================================*/ -namespace System.Reflection.Emit { - - using System; - using System.Reflection; +using System; +using System.Reflection; + +namespace System.Reflection.Emit +{ [Serializable] - public struct PropertyToken { - + public struct PropertyToken + { public static readonly PropertyToken Empty = new PropertyToken(); internal int m_property; - internal PropertyToken(int str) { - m_property=str; + internal PropertyToken(int str) + { + m_property = str; } - - public int Token { + + public int Token + { get { return m_property; } } - + // Satisfy value class requirements public override int GetHashCode() { @@ -46,23 +49,20 @@ namespace System.Reflection.Emit { else return false; } - + public bool Equals(PropertyToken obj) { return obj.m_property == m_property; } - + public static bool operator ==(PropertyToken a, PropertyToken b) { return a.Equals(b); } - + public static bool operator !=(PropertyToken a, PropertyToken b) { return !(a == b); } - } - - } |