Beispiel #1
0
 public static void Register <U>(this ReaderContainer container, DocumentType documentType) where U : IReader
 {
     container.Register(documentType, typeof(U));
 }
Beispiel #2
0
 public static T Resolve <T>(this ReaderContainer container, DocumentType documentType) where T : IReader
 {
     return((T)container.GetInstance(documentType));
 }