projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3224 from ludovic-henry/iolayer-extract-wait-handle
[mono.git]
/
mcs
/
class
/
corlib
/
System.Reflection
/
MethodBody.cs
diff --git
a/mcs/class/corlib/System.Reflection/MethodBody.cs
b/mcs/class/corlib/System.Reflection/MethodBody.cs
index e76f22c9c9653d603e3ad2128ffdf53396c7b1bc..9cc5ca040de9ab23abed6cee1c109545a2e873cf 100644
(file)
--- a/
mcs/class/corlib/System.Reflection/MethodBody.cs
+++ b/
mcs/class/corlib/System.Reflection/MethodBody.cs
@@
-35,7
+35,9
@@
using System.Runtime.InteropServices;
namespace System.Reflection {
[ComVisible (true)]
namespace System.Reflection {
[ComVisible (true)]
- public sealed class MethodBody {
+ [StructLayout (LayoutKind.Sequential)]
+ public
+ class MethodBody {
#pragma warning disable 649
#region Sync with reflection.h
ExceptionHandlingClause[] clauses;
#pragma warning disable 649
#region Sync with reflection.h
ExceptionHandlingClause[] clauses;
@@
-47,40
+49,54
@@
namespace System.Reflection {
#endregion
#pragma warning restore 649
#endregion
#pragma warning restore 649
- internal MethodBody () {
+ protected
+ MethodBody () {
}
}
- public IList<ExceptionHandlingClause> ExceptionHandlingClauses {
+ public
+ virtual
+ IList<ExceptionHandlingClause> ExceptionHandlingClauses {
get {
return Array.AsReadOnly<ExceptionHandlingClause> (clauses);
}
}
get {
return Array.AsReadOnly<ExceptionHandlingClause> (clauses);
}
}
- public IList<LocalVariableInfo> LocalVariables {
+ public
+ virtual
+ IList<LocalVariableInfo> LocalVariables {
get {
return Array.AsReadOnly<LocalVariableInfo> (locals);
}
}
get {
return Array.AsReadOnly<LocalVariableInfo> (locals);
}
}
- public bool InitLocals {
+ public
+ virtual
+ bool InitLocals {
get {
return init_locals;
}
}
get {
return init_locals;
}
}
- public int LocalSignatureMetadataToken {
+ public
+ virtual
+ int LocalSignatureMetadataToken {
get {
return sig_token;
}
}
get {
return sig_token;
}
}
- public int MaxStackSize {
+
+ public
+ virtual
+ int MaxStackSize {
get {
return max_stack;
}
}
get {
return max_stack;
}
}
- public byte[] GetILAsByteArray () {
+ public
+ virtual
+ byte[] GetILAsByteArray () {
return il;
}
}
return il;
}
}