2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / tests / test-71.cs
1 //
2 // struct with a constructor
3 //
4 using System;
5
6 class X {
7
8         static void Main ()
9         {
10                 MethodSignature ms = new MethodSignature ("hello", null, null);
11                 
12                 Console.WriteLine ("About to look for: " + ms.Name);
13         }
14 }
15
16         struct MethodSignature {
17                 public string Name;
18                 public Type RetType;
19                 public Type [] Parameters;
20                 
21                 public MethodSignature (string name, Type ret_type, Type [] parameters)
22                 {
23                         Name = name;
24                         RetType = ret_type;
25                         Parameters = parameters;
26                 }
27         }
28