Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created September 13, 2010 11:49
Show Gist options
  • Save follesoe/577178 to your computer and use it in GitHub Desktop.
Save follesoe/577178 to your computer and use it in GitHub Desktop.
public static void UseSomeDynamicCode()
{
IDoSomething wrapper = DynamicWrapper.Wrap<IDoSomething>("some_script.rb");
int sum = wrapper.Add(5, 5);
}
public interface IDoSomething
{
int Add(int a, int b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment