Xamarin Public Jenkins (auto-signing) ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00

40 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System.Reflection {
internal sealed class RuntimeMethodBody : MethodBody
{
ExceptionHandlingClause[] clauses;
LocalVariableInfo[] locals;
byte[] il;
bool init_locals;
int sig_token;
int max_stack;
// Called by the runtime
internal RuntimeMethodBody (ExceptionHandlingClause[] clauses, LocalVariableInfo[] locals,
byte[] il, bool init_locals, int sig_token, int max_stack)
{
this.clauses = clauses;
this.locals = locals;
this.il = il;
this.init_locals = init_locals;
this.sig_token = sig_token;
this.max_stack = max_stack;
}
public override int LocalSignatureMetadataToken => sig_token;
public override IList<LocalVariableInfo> LocalVariables => Array.AsReadOnly (locals);
public override int MaxStackSize => max_stack;
public override bool InitLocals => init_locals;
public override byte[] GetILAsByteArray() => il;
public override IList<ExceptionHandlingClause> ExceptionHandlingClauses => Array.AsReadOnly (clauses);
}
}