<%@ page language="C#" masterpagefile="~/templates/Documentation.master" inherits="Page" pagetitle="C# Code Generation Settings" keywords="C# Code Generation Settings"%>

C# Code Generation Settings

When you generate C# code for an XQuery, Stylus Studio displays the C# Code Generation dialog box.

Figure 395. C# Code Generation Dialog Box

You use this dialog box to specify

The default is a \sources directory created in your Windows user data directory - C:\Documents and Settings\sula\My Documents\Stylus Studio\sources , for example.

The default class name is taken from the XQuery file name.

Note: This option appears only if you are generating XQuery code.

To run the .cs file, simply press Ctrl+F5 in Visual Studio.