17 lines
386 B
C#
17 lines
386 B
C#
|
namespace System.Runtime.InteropServices
|
||
|
{
|
||
|
public static class InteropExtensions
|
||
|
{
|
||
|
public static bool IsBlittable (this object obj)
|
||
|
{
|
||
|
throw new NotImplementedException ();
|
||
|
}
|
||
|
|
||
|
public static int GetElementSize (this Array array)
|
||
|
{
|
||
|
if (array == null)
|
||
|
throw new ArgumentNullException (nameof (array));
|
||
|
return Marshal.GetArrayElementSize (array.GetType ());
|
||
|
}
|
||
|
}
|
||
|
}
|