Chapter 15 Working with C#


Defining a C# preprocessing symbol

You can define C# preprocessing symbols in the preprocessing tab of the reverse engineering dialog box.

Symbol names are case sensitive and must be unique. Make sure you do not type reserved words like true, false, if, do and so on.

The list of symbols is saved in the model and will be reused when you synchronize your model with existing code using the Synchronize with Generated Files command.

For more information on the synchronize with generated files command see section Synchronizing a Model with Generated Files in chapter Reverse Engineering in an OOM.

You can use the Set As Default button to save the list of symbols in the registry.

Steps To define C# preprocessing symbols:

  1. Select Language→Reverse engineering C#.

    The Reverse Engineering C# dialog box is displayed.
  2. Click the Preprocessing tab to display the corresponding tab.
  3. Click the Add a row tool to insert a line in the list.
  4. Type symbol names in the Name column.

    The Defined check box is automatically selected for each symbol to indicate that the symbol will be taken into account during preprocessing.
  5. Click Apply.

 


Copyright (C) 2008. Sybase Inc. All rights reserved.