Cosmos/source/Cosmos.Core.Plugs/System/Runtime/CompilerServices/RuntimeHelpersImpl.cs
Charles Betros 2637bc9b41 Plugs
2017-02-05 01:36:54 -06:00

39 lines
907 B
C#

using System;
using System.Runtime.CompilerServices;
using Cosmos.IL2CPU.Plugs;
namespace Cosmos.Core.Plugs.System.Runtime.CompilerServices
{
[Plug(Target = typeof(RuntimeHelpers))]
public static class RuntimeHelpersImpl
{
public static void cctor()
{
}
public static bool Equals(object o1, object o2)
{
if (o1 == null
&& o2 == null)
{
return true;
}
if (o1 == null
|| o2 == null)
{
return false;
}
return object.Equals(o1, o2);
}
public static void ProbeForSufficientStack()
{
// no implementation yet, before threading not needed
}
public static int GetHashCode(object o)
{
throw new NotImplementedException();
}
}
}