Imported Upstream version 5.10.0.69

Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-29 19:03:06 +00:00
parent d8f8abd549
commit e2950ec768
6283 changed files with 453847 additions and 91879 deletions

View File

@@ -31,9 +31,9 @@ namespace System.Reflection.Emit
Return = 7,
Throw = 8,
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public partial struct OpCode
{
private object _dummy;
public System.Reflection.Emit.FlowControl FlowControl { get { throw null; } }
public string Name { get { throw null; } }
public System.Reflection.Emit.OpCodeType OpCodeType { get { throw null; } }

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Threading;
using System.Diagnostics.Contracts;
namespace System.Reflection.Emit
{
@@ -157,7 +156,6 @@ namespace System.Reflection.Emit
}
}
[Pure]
public override bool Equals(Object obj)
{
if (obj is OpCode)
@@ -166,19 +164,16 @@ namespace System.Reflection.Emit
return false;
}
[Pure]
public bool Equals(OpCode obj)
{
return obj.Value == Value;
}
[Pure]
public static bool operator ==(OpCode a, OpCode b)
{
return a.Equals(b);
}
[Pure]
public static bool operator !=(OpCode a, OpCode b)
{
return !(a == b);