This is the error:
Cannot take the address of, get the size of, or declare a pointer to a managed type ('System.RuntimeTypeHandle') (...)\fCraft\Utils\ExtensionMethods.cs
Line: 588
Column: 34
I clicked it:
Code: Select all
public static int SizeOf( Type type ) {
if( type.IsValueType ) {
return System.Runtime.InteropServices.Marshal.SizeOf( type );
} else {
RuntimeTypeHandle th = type.TypeHandle;
return *(*(int**)&th + 1);
What is this?