public ActionResult GetAutowriedService() { var serviceProvider = new AutowiredServiceProvider(_serviceProvider); serviceProvider.GetRequiredService <IFooService>().Bar.Bar(); return(Content($"{Foo.Foo()} , {Foo.Bar.Bar()}")); }
public static int Err() { s.Bar x; // no type named System.Bar s.Bar(); // no System.Bar() ; X.foo(); // X is invalid Foo.Foo(); // No Foo.Foo(); either .. return(0); }