Skip to content

Instantly share code, notes, and snippets.

@marking
Created January 24, 2014 16:40
Show Gist options
  • Save marking/8600999 to your computer and use it in GitHub Desktop.
Save marking/8600999 to your computer and use it in GitHub Desktop.
public static IList<T> Get<T, I>()
where T : class
where I : IRepository<T>
{
using (var assembleContainer = BuildAssembleContainer())
{
return assembleContainer.Resolve<I>().List();
}
}
@jasoninrapid
Copy link

Ya, that is pretty clever!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment