C# Code Generation Settings

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

Figure 362. C# Code Generation Dialog Box

You use this dialog box to specify

  • The target directory in which you want the C# code created. c:\temp\myC#Code, for example. If the directory you name does not exist, Stylus Studio creates it when you run the Code Generation wizard.

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.

  • Optionally, a namespace name. If you specify a namespace name, this name is used for a subfolder created in the target directory you specify. If you specify myNamespace as the package name, for example, the generated code is written to c:\temp\myC#Code\myNamespace. (Though optional, it is considered good practice to create a namespace name.)
  • The class name. Stylus Studio also uses the class name for the .cs file created by the Code Generation wizard. For example, if you provide the name myClass, Stylus Studio creates c:\temp\myC#Code\myNamespace\myClass.cs.

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

  • Whether or not you want to open the generated code in a third-party development tool, like Microsoft Visual Studio, for example.

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

An Introduction To XML Schema Development

An Introduction to XML schema development in Stylus Studio covers some of the highlights of our XML Schema Editor, powerful tools for editing, validating, converting and generating XML schema. Watch the video online today!

XMLSCHEMA-DEV Blog

XML Schema-DEV is an active community for XML Schema-releated development - join the discussion on XML Schema standards, tools, implementations and more. Bookmark this RSS or ATOM feed today!

Consumer Food Products

Want to know what special ingredient is in these consumer food product companies work enviornment? Well it's a touch Stylus Studio that give these consumer food product companies the extra edge they need for producing such high quality food products!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member