September 10, 2009
Item Templates (Visual Studio 2005+)
Create a new file.
Follow the guidelines shown below
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace $rootnamespace$
{
public class $safeitemrootname$
{
$safeitemrootname$()
{
}
}
}
Hit File –> Export Template
Follow the wizard.
A zip file will be generated, distribute this zip file to deploy the item template to others. The file must be located at:
C:\Users\USERNAME\Documents\Visual Studio XXXX\Templates\ItemTemplates\
September 7, 2009
INotifyPropertyChanged snippet for VisualStudio
This snippet needs to be put in: C:\Users\USERNAME\Documents\Visual Studio 20##\Code Snippets\Visual C#\My Code Snippets\INotifyPropertyChanged.snippet
To use it in Visual Studio, just type notifyp and TAB once. Then a property with INotifyPropertyChanged will be generated accordingly. Remember to implement INotifyPropertyChanged for your class
(more…)
Snippet galore
This snippet needs to be put in: C:\Users\USERNAME\Documents\Visual Studio 20##\Code Snippets\Visual C#\My Code Snippets\SingletonManager.snippet
To use it in Visual Studio, just type manager and TAB once. Then a singleton instance of the wanted classname will be generated accordingly.
(more…)