예제 #1
0
 static GroBufHelpers()
 {
     isMono = Type.GetType("Mono.Runtime") != null;
     ExtractDynamicMethodPointer = EmitDynamicMethodPointerExtractor();
     LeafTypes       = BuildLeafTypes();
     LeafTypeHandles = LeafTypes.Select(type => type == null ? IntPtr.Zero : type.TypeHandle.Value).ToArray();
 }
예제 #2
0
 static GroBufHelpers()
 {
     ExtractDynamicMethodPointer = EmitDynamicMethodPointerExtractor();
     LeafTypes       = BuildLeafTypes();
     LeafTypeHandles = LeafTypes.Select(type => type == null ? IntPtr.Zero : type.TypeHandle.Value).ToArray();
 }