projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #498 from Unroll-Me/master
[mono.git]
/
mcs
/
class
/
corlib
/
System.Reflection.Emit
/
SignatureToken.cs
diff --git
a/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
b/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
index 8db7506f93ce007c075c3e7b4a273fcfe7a5dcff..9c6e32ee7b2d929b7c1cea69f76d11aa04e0f4a2 100644
(file)
--- a/
mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
+++ b/
mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
@@
-25,6
+25,7
@@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !FULL_AOT_RUNTIME
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
@@
-33,23
+34,12
@@
namespace System.Reflection.Emit {
/// <summary>
/// Represents the Token returned by the metadata to represent a Signature.
/// </summary>
/// <summary>
/// Represents the Token returned by the metadata to represent a Signature.
/// </summary>
-#if NET_2_0
[ComVisible (true)]
[ComVisible (true)]
-#else
- [Serializable]
-#endif
public struct SignatureToken {
internal int tokValue;
public struct SignatureToken {
internal int tokValue;
- public static readonly SignatureToken Empty;
-
-
- static SignatureToken ()
- {
- Empty = new SignatureToken ();
- }
-
+ public static readonly SignatureToken Empty = new SignatureToken ();
internal SignatureToken (int val)
{
internal SignatureToken (int val)
{
@@
-70,12
+60,20
@@
namespace System.Reflection.Emit {
return res;
}
return res;
}
-#if NET_2_0
public bool Equals (SignatureToken obj)
{
return (this.tokValue == obj.tokValue);
}
public bool Equals (SignatureToken obj)
{
return (this.tokValue == obj.tokValue);
}
-#endif
+
+ public static bool operator == (SignatureToken a, SignatureToken b)
+ {
+ return Equals (a, b);
+ }
+
+ public static bool operator != (SignatureToken a, SignatureToken b)
+ {
+ return !Equals (a, b);
+ }
/// <summary>
/// Tests whether the given object is an instance of
/// <summary>
/// Tests whether the given object is an instance of
@@
-100,3
+98,4
@@
namespace System.Reflection.Emit {
}
}
+#endif