PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/csharp/varargs_runme.cs

#
C# | 20 lines | 13 code | 6 blank | 1 comment | 6 complexity | 3662c0626b0a031235cd5a4f40f2d2d8 MD5 | raw file
 1// varargs test
 2
 3using System;
 4using varargsNamespace;
 5
 6public class varargs_runme {
 7
 8  public static void Main() {
 9
10    if (varargs.test("Hello") != "Hello")
11      throw new Exception("Failed");
12
13    Foo f = new Foo("Greetings");
14    if (f.str != "Greetings")
15      throw new Exception("Failed");
16        
17    if (f.test("Hello") != "Hello")
18      throw new Exception("Failed");
19  }
20}