コード例 #1
0
 public Type GetImplementType(Type interfaceType)
 {
     if (IsRegisteredImplement(interfaceType))
     {
         return(interfaceTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }
コード例 #2
0
 public object GetSingleton(Type interfaceType)
 {
     if (IsRegisteredSingleton(interfaceType))
     {
         return(singletonTable[interfaceType]);
     }
     throw IOCException.NotRegisteredException(interfaceType);
 }