Cosmos/source/Cosmos.System.Plugs/System/EnumImpl.cs

41 lines
No EOL
1.1 KiB
C#

using System;
using System.Reflection;
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(ref Enum aThis)
{
throw new NotImplementedException("Enum.GetHashCode()");
}
#if false
public static CorElementType InternalGetCorElementType(Enum aThis)
{
throw new NotImplementedException("Enum.GetHashCode()");
}
#endif
}
}