How to skip an enum?

104 views
Skip to first unread message

obiwanjacobi

unread,
May 18, 2007, 3:07:29 PM5/18/07
to obfuscar
How do I skip an enum?

I can use SkipType but that still obfuscates the 'named-values'...?

Ryan Williams

unread,
May 18, 2007, 5:21:01 PM5/18/07
to obfu...@googlegroups.com
You can use SkipField. For example, in the following code:

namespace TestClasses
{
public enum Enum1
{
Value1,
Value2,
ValueA
}
}

To skip renaming of Enum1.Value2, you can use the following xml:

<Module file='$(InPath)\AssemblyWithEnums.dll'>
<SkipField type='TestClasses.Enum1' name='Value2' />
</Module>

It will still rename the Enum1 type itself, unless you add a SkipType
element that excludes it.

Reply all
Reply to author
Forward
0 new messages