Exemplo n.º 1
0
        private void CallMethods()
        {
            SimpleReferenceType.MethodThree(12, new SimpleValueType(), new SimpleValueType());

            var simple = new SimpleReferenceType();

            simple.MethodOne(1, new SimpleValueType());

            var s = "s";
            var g = Guid.NewGuid();
            var t = new SimpleValueType();

            simple.MethodTwo(ref s, ref g, ref t);

            simple.MethodFour <Guid, string, int>(Guid.NewGuid(), "hi", 44);

            var sa = new string[] { "a", "b", "c" };
            var ta = new SimpleValueType[] { new SimpleValueType() };

            simple.MethodFive(new string[] { "a", "b", "c" }, ref sa,
                              new SimpleValueType[] { new SimpleValueType() }, ref ta);

            simple.MethodSix <string, string>(ref s, s);
        }
Exemplo n.º 2
0
 public string MethodOne(int a, SimpleValueType b)
 {
     return("this");
 }
Exemplo n.º 3
0
 public void MethodTwo(ref string x, ref Guid a, ref SimpleValueType b)
 {
 }