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