Foo() public method

public Foo ( ) : System
return System
Example #1
0
        public ActionResult GetAutowriedService()
        {
            var serviceProvider = new AutowiredServiceProvider(_serviceProvider);

            serviceProvider.GetRequiredService <IFooService>().Bar.Bar();
            return(Content($"{Foo.Foo()} , {Foo.Bar.Bar()}"));
        }
Example #2
0
 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);
 }