New test.
[mono.git] / mcs / class / Mono.C5 / doc / Test.cs
1 /*\r
2  Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft\r
3  Permission is hereby granted, free of charge, to any person obtaining a copy\r
4  of this software and associated documentation files (the "Software"), to deal\r
5  in the Software without restriction, including without limitation the rights\r
6  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
7  copies of the Software, and to permit persons to whom the Software is\r
8  furnished to do so, subject to the following conditions:\r
9  \r
10  The above copyright notice and this permission notice shall be included in\r
11  all copies or substantial portions of the Software.\r
12  \r
13  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
14  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
15  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
16  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
17  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
18  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
19  SOFTWARE.\r
20 */\r
21 \r
22 using System;\r
23 using MSG = System.Collections.Generic;\r
24 \r
25 namespace Try\r
26 {\r
27 /*\r
28         /// <summary>\r
29         /// Affenpinscher \r
30         /// </summary>\r
31         public class SSS<T,U>\r
32         {\r
33                 /// <summary>\r
34                 /// GGGGGGG <cell>tidlig <seealso cref="T:Try.Foo!3"/> <b alk="foo">bonny</b> namse</cell> efter\r
35                 /// </summary>\r
36                 /// <param name="u">zeU</param>\r
37                 /// <param name="cell">zeI</param>\r
38                 /// <param name="t">zeT</param>\r
39                 /// <returns>zeReturn</returns>\r
40                 public static T g(out U u, ref int cell, T t) { u = default(U); return default(T); }\r
41                 \r
42                 /// <summary>\r
43                 /// Nested klasse\r
44                 /// </summary>\r
45                 public class Inner<K>\r
46                 {\r
47                         /// <summary>\r
48                         /// IIIIIIIIII\r
49                         /// </summary>\r
50                         /// <param name="t">TTTTTTTTTT</param>\r
51                         /// <param name="k">KKKKKKK</param>\r
52                         /// <returns>RRRRRRRRRRR</returns>\r
53                         public U indre(T t, K k) { return default(U); }\r
54                 }\r
55         /// <summary>\r
56         /// Jaj ja\r
57         /// </summary>\r
58         public class NongenNested\r
59         {\r
60             /// <summary>\r
61             /// Det er et y\r
62             /// </summary>\r
63             public int y;\r
64         }\r
65         /// <summary>\r
66                 /// Lolololola\r
67                 /// </summary>\r
68                 public U lefield;\r
69                 /// <summary>\r
70                 /// Cococococola\r
71                 /// </summary>\r
72                 public static Foo<T,U,U> gramse;\r
73                 /// <summary>\r
74                 /// zesum\r
75                 /// </summary>\r
76                 /// <value>zeval</value>\r
77                 public SSS<T,T> leprop { get { return default(SSS<T,T>); } }\r
78                 /// <summary>\r
79                 /// Sju\r
80                 /// </summary>\r
81                 /// <param name="f">ffffffff</param>\r
82                 /// <param name="johndoe">ffffffff</param>\r
83                 public string s<V,X,Y,Z>(Foo<T,Y,SSS<Z,T>> f, int johndoe) { return "7"; }\r
84                 /// <summary>\r
85                 /// intuism\r
86                 /// </summary>\r
87                 /// <param name="tudse">froe</param>\r
88                 /// <param name="frank">sin</param>\r
89                 public SSS(T[] tudse, double frank) { }\r
90         }\r
91 \r
92         /// <summary>\r
93         /// ooh \r
94         /// </summary>\r
95 \r
96         public class HHH\r
97         {\r
98                 /// <summary>\r
99                 /// MusseKom\r
100                 /// </summary>\r
101                 public class Musse { }\r
102         }\r
103 \r
104 \r
105 \r
106         /// <summary>\r
107         /// Hejsa \r
108         /// </summary>\r
109         public class Foo<K,L,M> { }\r
110 \r
111 */\r
112         /// <summary>\r
113         /// Hejsa\r
114         /// </summary>\r
115         public delegate void Mapper<T,U>(T t);\r
116 \r
117 \r
118 \r
119         /// <summary>\r
120         /// Los accoutables\r
121         /// </summary>\r
122         public interface IEnumerable<T>\r
123         {\r
124                 // <summary>\r
125                 // getegetegeteg\r
126                 // </summary>\r
127                 // <returns>leturn</returns>\r
128                 //MSG.IEnumerator<T> GetEnumerator();\r
129 \r
130 \r
131                 /// <summary>\r
132                 /// Apply a delegate to all items of this collection.\r
133                 /// </summary>\r
134                 /// <param name="a">The delegate to apply</param>\r
135                 void Map<U>(Mapper<T,U> a);\r
136         }\r
137 }\r