You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
committed by
Jo Shields
parent
aa7da660d6
commit
c042cd0c52
@@ -6,7 +6,17 @@ namespace System.Runtime.CompilerServices {
|
||||
{
|
||||
static internal T UnsafeCast<T>(Object o) where T : class
|
||||
{
|
||||
return (T)o;
|
||||
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
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user