Skip to content

Instantly share code, notes, and snippets.

@sir-wabbit
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save sir-wabbit/f11713fea030f7496c6b to your computer and use it in GitHub Desktop.

Select an option

Save sir-wabbit/f11713fea030f7496c6b to your computer and use it in GitHub Desktop.
SharpPatcher example
class A {
[Patch(New = true)]
private int newField;
[Patch(AccessRights = true)]
public int privateField;
public int Method1(int x);
[Patch(Name = "Method1")]
public int Method1Patch(int x) {
int result = Method1(x);
// ...
return result;
}
[Patch]
public int Method2(int x) {
//...
}
}
[Patch(New = true)]
class B { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment