posted on Wednesday, January 05, 2005 11:05 AM
by
anoras
How to use reserved words as identifiers
A little known feature in C# is that you can place an @ in front of an identifier. This is useful when you want to use a reserved word such as class as an identifier. Dynamic code generation has inherited the identifier “clazz” from the Jakarta Commons project. However in C# you can give you ModuleBuilder a correctly spelled identifier.
TypeBuilder @class=module.DefineType ("TempClass",TypeAttributes.Public);