Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

22 lines
454 B
C#

namespace System.Runtime.CompilerServices {
[FriendAccessAllowed]
internal static class JitHelpers
{
static internal T UnsafeCast<T>(Object o) where T : class
{
return Array.UnsafeMov<object, T> (o);
}
static internal int UnsafeEnumCast<T>(T val) where T : struct
{
return Array.UnsafeMov<T, int> (val);
}
static internal long UnsafeEnumCastLong<T>(T val) where T : struct
{
return Array.UnsafeMov<T, long> (val);
}
}
}