Selecting Features for Inclusion in Your C# Exposure Definition

The Select Features for Classes sheet of the C# Exposure Wizard enables you to select the class features (properties and optionally methods and constants) that are included in the exposure.

An example of the Select Features for Classes sheet is shown in the following image.

The properties (and methods and constants, if selected) are sorted alphabetically with the properties first, followed by the methods and then the constants, which are also sorted alphabetically. Methods are displayed with a blue font and class constants with a green font.

For details about refining features displayed on this sheet of the C# Exposure Wizard, see the following subsections.

To select features for your C# exposure

  1. In the Classes table, click on the row of the class whose features (properties and optionally methods and constants) you want to expose. The Features pane is then populated with all JADE properties, methods, and constants (if the display of methods and constants is selected) defined in the selected class.

    By default, all candidate properties, methods, and constants defined in the class selected in the Classes table are listed in the Features pane. If you do not want to list methods or constants, right-click on the class in the Classes table and then select the Show Methods or Show Constants command from the popup menu. (For details, see "Toggling the Display of Methods" or "Toggling the Display Constants", later in this chapter.)

    You can display tree lines in the Features pane. For details, see "Displaying Tree Lines in the Features Pane", later in this chapter.

  2. In the Features pane, check the check box at the left of each JADE property, method, or constant that you want to include in the C# exposure.

    When you select the exposure of a reimplemented method, the highest class in the hierarchy that declares that method is also exposed. Alternatively, you can double-click a feature in the Features pane, to include it in your C# exposure definition.

  3. If you want a C# class to have a name that differs from the default JADE name, specify the name in the C# Class name column that you require for the C# class.

    The name must be a valid C# name. An error message box is displayed if you do not specify a name for the C# class or the specified value is already defined in the C# exposure.