Additional information:
ildasm reports this for the method generate by emit:
Method #4 (0600209e)
-------------------------------------------------------
MethodName:
OpenAccessEnhancedWrap_System_Int32_testing_dotnet_csharp_model_IntType_ToString_value
(0600209E)
Flags : [PrivateScope] [Static] [HideBySig] [ReuseSlot]
(00000090)
RVA : 0x000a7cf0
ImplFlags : [IL] [Managed] (00000000)
CallCnvntn: [DEFAULT]
ReturnType: String
2 Arguments
Argument #1: Class testing.dotnet.csharp.model.IntType
Argument #2: ByRef I4
CustomAttribute #1 (0c003147)
-------------------------------------------------------
CustomAttribute Type: 0a000002
CustomAttributeName:
System.Runtime.CompilerServices.CompilerGeneratedAttribute :: instance
void .ctor()
Length: 4
Value : 01 00 00 00
> <
ctor args: ()
CustomAttribute #2 (0c003148)
-------------------------------------------------------
CustomAttribute Type: 0a000001
CustomAttributeName:
System.ComponentModel.EditorBrowsableAttribute :: instance
void .ctor(value class System.ComponentModel.EditorBrowsableState)
Length: 8
Value : 01 00 01 00 00 00 00 00
> <
ctor args: ( <can not decode> )
and this for the cecil generated method:
Method #4 (0600203b)
-------------------------------------------------------
MethodName:
OpenAccessEnhancedWrap_System_Int32_testing_dotnet_csharp_model_IntType_ToString_value
(0600203B)
Flags : [PrivateScope] [Static] [HideBySig] [ReuseSlot]
(00000090)
RVA : 0x00098158
ImplFlags : [IL] [Managed] (00000000)
CallCnvntn: [DEFAULT]
ReturnType: String
2 Arguments
Argument #1: Class testing.dotnet.csharp.model.IntType
Argument #2: ByRef ValueClass System.Int32
2 Parameters
(1) ParamToken : (0800157e) Name : flags: [none]
(00000000)
(2) ParamToken : (0800157f) Name : flags: [none]
(00000000)
CustomAttribute #1 (0c002a16)
-------------------------------------------------------
CustomAttribute Type: 0a000113
CustomAttributeName:
System.Runtime.CompilerServices.CompilerGeneratedAttribute :: instance
void .ctor()
Length: 4
Value : 01 00 00 00
> <
ctor args: ()
CustomAttribute #2 (0c002a17)
-------------------------------------------------------
CustomAttribute Type: 0a000112
CustomAttributeName:
System.ComponentModel.EditorBrowsableAttribute :: instance
void .ctor(value class System.ComponentModel.EditorBrowsableState)
Length: 8
Value : 01 00 01 00 00 00 00 00
> <
ctor args: ( <can not decode> )
Any idea would be helpful.
Thanks,
Jan
--
--
mono-cecil