A question of a beginner in c#
from net
using System;
namespace mcMath
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Class1
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
}
}
When I make project, I am getting
using System;
namespace mcmath
{
public class Class1
{
}
}
How can add by default comments, and default constructor. I mean
/// <summary>
/// Summary description for Class1.
/// </summary>
public Class1()
{
//
// TODO: Add constructor logic here
//
}
What I have to do. I am using VS 2008. Regards,
Under the folder
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033are all the templates for C# windows projects. You’d have to unzip those, add the comments there, then re-zip them.Then when you create a new project, the comments will be there.
Likewise, individual items can be found at
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\.If you don’t want to change those versions, you can copy them to
C:\Users\<UserName>\Documents\Visual Studio 2010\Templates. Just be sure to update the vstemplate file with new names and GUIDs.