public string testMethod(int par1,string par2,Class2 class2) { return par1.ToString() + par2+class2.Str; }
static void Main(string[] args) { new TestWebClient(); string str = @"test""test"""; int? x = 2; int xx = x ?? 10; test2 += Program_test; test2(""); test3 += Program_test; test3(""); Program.testEvent= new func1(Program.Program_test); testEvent(""); Program.testEvent = new func1(Program.Program_test1); testEvent(""); TestOut.Delfunc += Program_test; TestOut.Delfunc += Program_test1; TestOut.Delfunc(""); // TestOut.test TestOut.test += Program_test; //TestOut.test(""); Class1 cl = new Class1(); Class2 cl2 = new Class2() { Str = "class2 str", }; func1 fun1 = new func1(Program.testDel); // System.Delegate.re string s = cl.testMethod(par2: "ste", par1: 7, class2: cl2); Console.Read(); }