Skip to content

Instantly share code, notes, and snippets.

@insightcoder
Last active August 21, 2017 12:27
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 insightcoder/0b4245e8f0ed76a402a6bda311747dba to your computer and use it in GitHub Desktop.
Save insightcoder/0b4245e8f0ed76a402a6bda311747dba to your computer and use it in GitHub Desktop.
public class Foo : IFoo
{
private IBar _bar;
public Foo(IBar bar)
{
_bar = bar;
}
// ...
}
public class Program
{
public static int Main(string[] args)
{
var foo = IocContainer.Resolve<IFoo>();
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment