Esempio n. 1
0
 public static TypeToGet get_an_instance_of <TypeToGet>()
 {
     if (the_container == null)
     {
         throw new NullReferenceException("The container has not been initialized yet, can't return anything.");
     }
     return(the_container.Resolve <TypeToGet>());
 }
Esempio n. 2
0
 public static TypeToGet get_an_instance_of <TypeToGet>()
 {
     return(the_container.Resolve <TypeToGet>());
 }