Merge pull request #1691 from esdrubal/exitevent
[mono.git] / mcs / class / corlib / ReferenceSources / JitHelpers.cs
1
2 namespace System.Runtime.CompilerServices {
3
4         [FriendAccessAllowed]
5         internal static class JitHelpers
6         {
7                 static internal T UnsafeCast<T>(Object o) where T : class
8                 {
9                         return Array.UnsafeMov<object, T> (o);
10                 }
11
12                 static internal int UnsafeEnumCast<T>(T val) where T : struct
13                 {
14                         return Array.UnsafeMov<T, int> (val);
15                 }
16
17                 static internal long UnsafeEnumCastLong<T>(T val) where T : struct
18                 {
19                         throw new NotImplementedException ();
20                 }
21         }
22 }