Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created May 3, 2012 07:55
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 einarwh/2584122 to your computer and use it in GitHub Desktop.
Save einarwh/2584122 to your computer and use it in GitHub Desktop.
Trivial code for adding interface declaration in Mono.Cecil.
private void InjectInterfaceDeclaration()
{
_typeDef.Interfaces.Add(_types.INotifyPropertyChanged);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment