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