Fri 28 Feb 2003 10:06:53 AM UTC, original submission:
Summary :
ILASM .custom (typecast) instance void Class::.ctor (valuetype)
This is the test case created from the microsofts ildasm,
Reported to the list :
http://www.dotgnu.info/pipermail/developers/2003-February/009977.html
Modified from this code here :
ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/dotgnu_test/mercury_dotnet_hello_ildasm/construct__cpp_code.dll.ild
[[
.namespace test
{
.class AssemblyAttributesGoHereSM {}
.class SecurityPermissionAttribute {}
.class SecurityAction {}
.custom (AssemblyAttributesGoHereSM ) instance void
SecurityPermissionAttribute::.ctor (valuetype ) = ( 01 00 08 00 00 00
01 00 54 02 10 53 6B 69 70 56 )
} // end of namespace mercury.construct__cpp_code
.namespace test
{
.class AssemblyAttributesGoHereSM {}
.class SecurityPermissionAttribute {}
.class SecurityAction {}
.custom (AssemblyAttributesGoHereSM ) instance void
SecurityPermissionAttribute::.ctor (valuetype ) = ( 01 00 08 00 00 00
01 00 54 02 10 53 6B 69 70 56 )
} // end of namespace mercury.construct__cpp_code
----------------------------------------------
error message is
----------------------------------------------
test1.cs:6: parse error, unexpected '('
This however works
.custom instance void SecurityPermissionAttribute::.ctor () = (00 00 00)
This does not work, the typecast :
// .custom (AssemblyAttributesGoHereSM ) instance void SecurityPermissionAttribute::.ctor () = (00 00 00)
This does not work, the valuetype :
// .custom instance void SecurityPermissionAttribute::.ctor (valuetype) = (00 00 00)
mike
|