2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-286.cs
blobd7c0d0338869095c8760dcc73e604c5410b79781
1 // Compiler options: -r:System.Xml.dll
3 abstract class MethodWrapper
5 private string[] declaredExceptions;
7 internal void SetDeclaredExceptions(MapXml.Throws[] throws)
9 if(throws != null)
11 declaredExceptions = new string[throws.Length];
12 for(int i = 0; i < throws.Length; i++)
14 declaredExceptions[i] = throws[i].Class;
20 namespace MapXml {
22 using System;
23 using System.Xml.Serialization;
25 public class Throws
27 [XmlAttribute("class")]
28 public string Class;
30 public static void Main ()