Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created March 30, 2015 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshVarty/0f1cf458306c9abf3a49 to your computer and use it in GitHub Desktop.
Save JoshVarty/0f1cf458306c9abf3a49 to your computer and use it in GitHub Desktop.
class MyClass
{
void MyMethod()
{
int x = LogValue("x", 5);
}
public static T LogValue<T>(string name, T value)
{
//Write to file
//...
return value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment