示例#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>());
 }
示例#2
0
 public static TypeToGet get_an_instance_of <TypeToGet>()
 {
     return(the_container.Resolve <TypeToGet>());
 }