Reverse Engineering C# Files

You can reverse engineer C# files

PowerDesigner does not support the default namespace in a Visual Studio project. If you define default namespaces in your projects, you should avoid reverse engineering the entire solution. It is better to reverse engineer each project separately.

  1. Select Language > Reverse Engineer C# to display the Reverse Engineer C# dialog box.
  2. Select to reverse engineer files or directories from the Reverse Engineering list.
  3. Click the Add button in the Selection tab.

    A standard Open dialog box is displayed.

  4. Select the items or directory you want to reverse engineer.
    Note:

    You select several files simultaneously using the Ctrl or Shift keys. You cannot select several directories.

    The Reverse C# dialog box displays the files you selected.

  5. Click OK.

    A progress box is displayed. If the model in which you are reverse engineering already contains data, the Merge Models dialog box is displayed.

    For more information on merging models, see the Core Features Guide > The PowerDesigner Interface > Comparing and Merging Models.

    The classes are added to your model. They are visible in the diagram and in the Browser. They are also listed in the Reverse tab of the Output window, located in the lower part of the main window.