Exemplo n.º 1
0
 public Type GetImplementType(Type interfaceType)
 {
     if (IsRegisteredImplement(interfaceType))
     {
         return(interfaceTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }
Exemplo n.º 2
0
 public object GetSingleton(Type interfaceType)
 {
     if (IsRegisteredSingleton(interfaceType))
     {
         return(singletonTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }