Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-286.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7c0d0338869095c8760dcc73e604c5410b79781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Compiler options: -r:System.Xml.dll

abstract class MethodWrapper
{
	private string[] declaredExceptions;

	internal void SetDeclaredExceptions(MapXml.Throws[] throws)
	{
		if(throws != null)
		{
			declaredExceptions = new string[throws.Length];
			for(int i = 0; i < throws.Length; i++)
			{
				declaredExceptions[i] = throws[i].Class;
			}
		}
	}
}

namespace MapXml {

    using System;
    using System.Xml.Serialization;
    
    public class Throws
    {
        [XmlAttribute("class")]
        public string Class;
            
        public static void Main ()
        {
        }
    }
}