Define Your Own Item Templates: C#: Define the Item Template Class: Listing 1

The class definition for the item template contains two macros: $rootnamespace$ and $safeitemname$. These are expanded to the default project namespace, and a Visual Studio generated class name. You can add more macro definitions to make your item template more reusable.

//////////////////////////////////////////////////////////////////////////////
// 
// Copyright © 2008 Bill Wagner.  
//
///////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace $rootnamespace$
{
    public class $safeitemname$
    {
    }
}
comments powered by Disqus

Featured

Subscribe on YouTube