Cosmos/source/Cosmos.System.Plugs/System/EnumImpl.cs
fanoI eb533357b0 - Correctly plugged Enum's GetHashCode()
- Removed GetHashCode() methods that were not really needed
- Plugged class CultureInfo for GetHashCode()
- Plugged class Runtime.CompilerServices for GetHashCode()
- Plugged class RuntimeTypeImpl for GetHashCode()
- Fixed tests that were failing using true .NET GetHashCode()
- Fixed IL Interpreter added SHIFT, AND, XOR... for sbyte and short
2016-03-05 23:10:06 +01:00

33 lines
No EOL
871 B
C#

using System;
using Cosmos.IL2CPU.Plugs;
namespace Cosmos.System.Plugs.System
{
[Plug(Target = typeof(Enum))]
public static class EnumImpl
{
// [PlugMethod(Signature = "System_Void__System_Enum__cctor__")]
public static void Cctor()
{
//
}
public static bool Equals(Enum aThis, object aEquals)
{
throw new NotSupportedException("Enum.Equals not supported yet!");
}
//[PlugMethod(Signature = "System_String___System_Enum_ToString____")]
public static string ToString(Enum aThis)
{
return "<Enum.ToString> not implemented";
// return UInt32Impl.ToString(ref aThis);
}
public static int GetHashCode(Enum aThis)
{
throw new NotImplementedException("Enum.GetHashCode()");
}
}
}