d52ce5243b7b7e0d6dc21dd531f68ebc99267324
[mono.git] / mcs / tests / test-286.cs
1 abstract class MethodWrapper
2 {
3         private string[] declaredExceptions;
4
5         internal void SetDeclaredExceptions(MapXml.Throws[] throws)
6         {
7                 if(throws != null)
8                 {
9                         declaredExceptions = new string[throws.Length];
10                         for(int i = 0; i < throws.Length; i++)
11                         {
12                                 declaredExceptions[i] = throws[i].Class;
13                         }
14                 }
15         }
16 }
17
18 namespace MapXml {
19
20     using System;
21     using System.Xml.Serialization;
22     
23     public class Throws
24     {
25         [XmlAttribute("class")]
26         public string Class;
27             
28         public static void Main ()
29         {
30         }
31     }
32 }