about Custom Attributes!

  • Thread starter Thread starter xiaorun huang
  • Start date Start date
X

xiaorun huang

I want use AssemblyBuilder's SetCustomAttribute to set a custom attributes!
it is alway true, but some times, use the same program with different data,
the custom attribute name losted! when i use with ildasm, it will show as

.custom UNNAMED_CUSTOM_ATTR = ( 01 00 01 01 00 00 )
.custom UNNAMED_CUSTOM_ATTR = ( 01 00 01 00 00 )

the data part is right! but name lost!

why?


xiaorun huang
 
More about it!

When i change Save with a parameter which is not module name, then the
custom attributes set OK!

If with a name same as module name in assembly, then some times, the error
occur!

xiaorun huang!
 
Back
Top