Skip to content

Instantly share code, notes, and snippets.

@tuyen-vuduc
Last active November 12, 2017 18:10
Show Gist options
  • Save tuyen-vuduc/b344fb4635a35a34dcf4a8167b00a126 to your computer and use it in GitHub Desktop.
Save tuyen-vuduc/b344fb4635a35a34dcf4a8167b00a126 to your computer and use it in GitHub Desktop.
CSharp class template
public class ClassSample
{
pubic static readonly string StatidFieldA;
pubic static readonly string StatidFieldZ;
private static readonly string StatidFieldA;
private static readonly string StatidFieldZ;
public event EventHandler EventA;
public event EventHandler EventZ;
event EventHandler privateEventA;
event EventHandler privateEventZ;
public string PropertyA {get;set;}
public string PropertyZ {get;set;}
string fieldA;
string fieldZ;
static ClassSample () {}
public ClassSample () {}
public void PublicMethodA () {}
public void PublicMethodZ () {}
void PrivateMethodA () {}
void PrivateMethodZ () {}
ICommand _ACommand;
public ICommand ACommand
{
return (_ACommand = _ACommand ?? new Command(ExecuteACommand, CanExecuteACommand));
}
bool CanExecuteACommand () {}
void ExecuteACommand () {}
ICommand _ZCommand;
public ICommand ZCommand
{
return (_ZCommand = _ZCommand ?? new Command(ExecuteZCommand, CanExecuteZCommand));
}
bool CanExecuteZCommand () {}
void ExecuteZCommand () {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment