This project has moved and is read-only. For the latest updates, please go here.

API Filter of on enum values

Topics: User Forum
Dec 9, 2010 at 1:03 AM

I have not found a way of filtering out individual constant values from an enum.  Any suggestions ?

In the following example, I do not want "Secret" to be in the generated help

public enum MyEnum
        /// <summary>Internal use only</summary>
        Secret = 3,
       /// <summary>Description of One</summary>
        One = 1,
       /// <summary>Description of Two</summary>
        Two = 2,
Dec 9, 2010 at 3:13 AM

The API filter doesn't support removal of indivual enum members since they aren't listed as individual members of the API.  You may be able to do it using the XPath Reflection File Filter plug-in.