foo() public static method

public static foo ( ) : object
return object
Exemplo n.º 1
0
Arquivo: test.cs Projeto: mono/gert
	static int Main ()
	{
		Program program = new Program ();
		ParameterModifier p;
		program.foo (out p);
		if (!p [0])
			return 1;
		return 0;
	}
Exemplo n.º 2
0
    static void Main(string[] args)
    {
        string y = "";

        y = "hello";

        Program p = new Program();

        p.foo(ref y);
        Console.WriteLine(y);
    }
Exemplo n.º 3
0
    static void Main(string[] args)
    {
        StringBuilder y = new StringBuilder();

        y.Append("hello");

        Program p = new Program();

        p.foo(y);
        Console.WriteLine(y);
    }
Exemplo n.º 4
0
    public static void Main()
    {
        FUNC f1 = Test.static_method;
        //FUNC f2 = Program.static_method;
        FUNC f2 = static_method;

        Test t  = new Test();
        FUNC f3 = t.instance_method;

        Program p  = new Program();
        FUNC    f4 = p.instance_method;

        p.foo();
    }