Microsoft 9GD00001 Computer Accessories User Manual


 
348 Microsoft Visual Studio 2010: A Beginner’s Guide
3. Add the following code to the file:
C#:
/// <summary>
/// Enum description
/// </summary>
public enum MyEnum
{
/// <summary>
/// Item 1 description
/// </summary>
Item1,
/// <summary>
/// Item 2 description
/// </summary>
Item2
}
VB:
''' <summary>
''' Enum description
''' </summary>
Public Enum MyEnum
''' <summary>
''' Item 1 description
''' </summary>
Item1
''' <summary>
''' Item 2 description
''' </summary>
Item2
End Enum
4. Save the file.
You now have a file that can be used as a skeleton for new enums. The next section
shows you how to export this file so that it can be used as an item template.
Exporting the Item Template
After you have a file written the way you want, you can save it as an item template. The
first step is to select File | Export Template, which will display the Choose Template Type
window, shown in Figure 12-3. Choose Item Template and click Next.