Dalstroem / FusionMVVM

[Deprecated] FusionMVVM is a toolkit made for WPF, and provides some easy-to-use features for creating MVVM applications, with focus on dependency injection and loosely-coupled design.
MIT License
0 stars 0 forks source link

Ioc - Register type #1

Closed Dalstroem closed 9 years ago

Dalstroem commented 9 years ago

Registers an interface and type as a pair. This should always return a new instance of IFoo.

Usage

RegisterType(typeof(IFoo), typeof(Foo));
RegisterType<IFoo, Foo>();
Dalstroem commented 9 years ago

Implemented in commit 77ea8abb7c6a08498cb151c1e74a1a9d3507d7ca and 69704502873330e05aeb4e46e36a0d87d706f251.