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

SomeAttribute.cs « SampleClasses « mdoc.Test « mdoc - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b7850cebb55f65ad082917334f1a8536807fc40 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
using Mono.Cecil;
using System;
using System.Collections.Generic;

namespace mdoc.Test.SampleClasses
{
    public class SomeAttribute
    {
        [AttributeDataType(TypeType = typeof(TypeReference))]
        public void PropertyTypeType()
        {
        }

        [AttributeDataType(TypeType = null)]
        public void PropertyTypeTypeWithNull()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeNestedTypes.NestedClass))]
        public void PropertyTypeTypeWithNestedType()
        {
        }

        [AttributeDataType(TypeType = typeof(ICollection<>))]
        public void PropertyTypeTypeWithUnboundCollection()
        {
        }

        [AttributeDataType(TypeType = typeof(ICollection<int>))]
        public void PropertyTypeTypeWithCollectionOfInt()
        {
        }

        [AttributeDataType(TypeType = typeof(IDictionary<,>))]
        public void PropertyTypeTypeWithUnboundDictionary()
        {
        }

        [AttributeDataType(TypeType = typeof(IDictionary<int, int>))]
        public void PropertyTypeTypeWithDictionaryOfInt()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeGenericClass<>))]
        public void PropertyTypeTypeWithUnboundCustomGenericType()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeGenericClass<int>))]
        public void PropertyTypeTypeWithCustomGenericTypeOfInt()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeNestedTypes.NestedGenericType<>))]
        public void PropertyTypeTypeWithUnboundNestedGenericType()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeNestedTypes.NestedGenericType<int>))]
        public void PropertyTypeTypeWithNestedGenericTypeOfInt()
        {
        }


        [AttributeDataType(TypeType = typeof(SomeNestedTypes.NestedGenericType<>.InnerNestedGenericType<>))]
        public void PropertyTypeTypeWithUnboundInnerNestedGenericType()
        {
        }

        [AttributeDataType(TypeType = typeof(SomeNestedTypes.NestedGenericType<string>.InnerNestedGenericType<int>))]
        public void PropertyTypeTypeWithInnerNestedGenericTypeOfInt()
        {
        }

        [AttributeDataType(BoolType = true)]
        public void PropertyBoolType()
        {
        }

        [AttributeDataType(SByteType = SByte.MinValue)]
        public void PropertySByteType()
        {
        }

        [AttributeDataType(ByteType = Byte.MaxValue)]
        public void PropertyByteType()
        {
        }

        [AttributeDataType(Int16Type = Int16.MinValue)]
        public void PropertyInt16Type()
        {
        }

        [AttributeDataType(UInt16Type = UInt16.MaxValue)]
        public void PropertyUInt16Type()
        {
        }

        [AttributeDataType(Int32Type = Int32.MinValue)]
        public void PropertyInt32Type()
        {
        }

        [AttributeDataType(UInt32Type = UInt32.MaxValue)]
        public void PropertyUInt32Type()
        {
        }

        [AttributeDataType(Int64Type = Int64.MinValue)]
        public void PropertyInt64Type()
        {
        }

        [AttributeDataType(UInt64Type = UInt64.MaxValue)]
        public void PropertyUInt64Type()
        {
        }

        [AttributeDataType(SingleType = Single.MinValue)]
        public void PropertySingleType()
        {
        }

        [AttributeDataType(DoubleType = Double.MinValue)]
        public void PropertyDoubleType()
        {
        }

        [AttributeDataType(CharType = 'C')]
        public void PropertyCharType()
        {
        }

        [AttributeDataType(StringType = "This is a string argument.")]
        public void PropertyStringType()
        {
        }

        [AttributeDataType(StringType = null)]
        public void PropertyStringTypeWithNull()
        {
        }

        [AttributeDataType(StringType = "")]
        public void PropertyStringTypeWithEmptyString()
        {
        }

        [AttributeDataType(ArrayOfIntType = new[] { 0, 0, 7 })]
        public void PropertyArrayOfIntType()
        {
        }

        [AttributeDataType(ArrayOfIntType = null)]
        public void PropertyArrayOfIntTypeWithNull()
        {
        }

        [AttributeDataType(EnumType = ConsoleColor.Red)]
        public void PropertyEnumType()
        {
        }

        [AttributeDataType(EnumType = (ConsoleColor)int.MaxValue)]
        public void PropertyEnumTypeWithUnknownValue()
        {
        }

        [AttributeDataType(NestedEnumType = SomeNestedTypes.NestedEnum.Read)]
        public void PropertyNestedEnumType()
        {
        }

        [AttributeDataType(NestedEnumType = (SomeNestedTypes.NestedEnum)int.MaxValue)]
        public void PropertyNestedEnumTypeWithUnknownValue()
        {
        }

        [AttributeDataType(FlagsEnumType = AttributeTargets.Class | AttributeTargets.Enum)]
        public void PropertyFlagsEnumType()
        {
        }

        [AttributeDataType(FlagsEnumType = AttributeTargets.All)]
        public void PropertyFlagsEnumTypeWithAllValue()
        {
        }

        [AttributeDataType(FlagsEnumType = (AttributeTargets)0)]
        public void PropertyFlagsEnumTypeWithUndefineValueZero()
        {
        }

        [AttributeDataType(DuplicateFlagsEnumType = SomeFlagsEnum.Read | SomeFlagsEnum.Write | SomeFlagsEnum.Open)]
        public void PropertyDuplicateFlagsEnumTypeWithCombinationValue()
        {
        }

        [AttributeDataType(NestedFlagsEnumType = SomeNestedTypes.NestedFlagsEnum.Class | SomeNestedTypes.NestedFlagsEnum.Enum)]
        public void PropertyNestedFlagsEnumType()
        {
        }

        [AttributeDataType(NestedFlagsEnumType = (SomeNestedTypes.NestedFlagsEnum)0)]
        public void PropertyNestedFlagsEnumTypeWithUndefineValueZero()
        {
        }

        [AttributeDataType(NotApplyAttributeFlagsEnumType = NotApplyAttributeValidFlagsEnum.Class | NotApplyAttributeValidFlagsEnum.Enum)]
        public void PropertyFlagsEnumTypeWithNotApplyAttributeValidTypeAndCombinationValue()
        {
        }

        [AttributeDataType(NotApplyAttributeFlagsEnumType = NotApplyAttributeValidFlagsEnum.Class)]
        public void PropertyFlagsEnumTypeWithNotApplyAttributeValidTypeAndSingleValue()
        {
        }

        [AttributeDataType(NotApplyAttributeInvalidFlagsEnumType = (NotApplyAttributeInvalidFlagsEnum)5)]
        public void PropertyFlagsEnumTypeWithNotApplyAttributeInvalidTypeAndUnknownCombinationValue()
        {
        }

        [AttributeDataType(ApplePlatformFlagsEnumType = ObjCRuntime.Platform.Mac_10_8 | ObjCRuntime.Platform.Mac_Arch64)]
        public void PropertyFlagsEnumTypeWithApplePlatformType()
        {
        }

        [AttributeDataType(ApplePlatformFlagsEnumType = ObjCRuntime.Platform.None)]
        public void PropertyFlagsEnumTypeWithApplePlatformAndNoneValue()
        {
        }

        [AttributeDataType(ObjectType = null)]
        public void PropertyObjectWithNull()
        {
        }

        [AttributeDataType(ObjectType = typeof(TypeReference))]
        public void PropertyObjectWithTypeType()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeNestedTypes.NestedClass))]
        public void PropertyObjectWithNestedTypeType()
        {
        }

        [AttributeDataType(ObjectType = typeof(ICollection<>))]
        public void PropertyObjectWithUnboundCollectionType()
        {
        }

        [AttributeDataType(ObjectType = typeof(ICollection<int>))]
        public void PropertyObjectWithCollectionTypeOfInt()
        {
        }

        [AttributeDataType(ObjectType = typeof(IDictionary<,>))]
        public void PropertyObjectWithUnboundDictionaryType()
        {
        }

        [AttributeDataType(ObjectType = typeof(IDictionary<int, int>))]
        public void PropertyObjectWithDictionaryTypeOfInt()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeGenericClass<>))]
        public void PropertyObjectWithUnboundCustomGenericType()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeGenericClass<int>))]
        public void PropertyObjectWithCustomGenericTypeOfInt()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeNestedTypes.NestedGenericType<>))]
        public void PropertyObjectWithUnboundNestedGenericType()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeNestedTypes.NestedGenericType<int>))]
        public void PropertyObjectWithNestedGenericTypeOfInt()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeNestedTypes.NestedGenericType<>.InnerNestedGenericType<>))]
        public void PropertyObjectWithUnboundInnerNestedGenericType()
        {
        }

        [AttributeDataType(ObjectType = typeof(SomeNestedTypes.NestedGenericType<string>.InnerNestedGenericType<int>))]
        public void PropertyObjectWithInnerNestedGenericTypeOfInt()
        {
        }

        [AttributeDataType(ObjectType = true)]
        public void PropertyObjectWithBoolType()
        {
        }

        [AttributeDataType(ObjectType = SByte.MinValue)]
        public void PropertyObjectWithSByteType()
        {
        }

        [AttributeDataType(ObjectType = Byte.MaxValue)]
        public void PropertyObjectWithByteType()
        {
        }

        [AttributeDataType(ObjectType = Int16.MinValue)]
        public void PropertyObjectWithInt16Type()
        {
        }

        [AttributeDataType(ObjectType = UInt16.MaxValue)]
        public void PropertyObjectWithUInt16Type()
        {
        }

        [AttributeDataType(ObjectType = Int32.MinValue)]
        public void PropertyObjectWithInt32Type()
        {
        }

        [AttributeDataType(ObjectType = UInt32.MaxValue)]
        public void PropertyObjectWithUInt32Type()
        {
        }

        [AttributeDataType(ObjectType = Int64.MinValue)]
        public void PropertyObjectWithInt64Type()
        {
        }

        [AttributeDataType(ObjectType = UInt64.MaxValue)]
        public void PropertyObjectWithUInt64Type()
        {
        }

        [AttributeDataType(ObjectType = Single.MinValue)]
        public void PropertyObjectWithSingleType()
        {
        }

        [AttributeDataType(ObjectType = Double.MinValue)]
        public void PropertyObjectWithDoubleType()
        {
        }

        [AttributeDataType(ObjectType = 'C')]
        public void PropertyObjectWithCharType()
        {
        }

        [AttributeDataType(ObjectType = "This is a string argument.")]
        public void PropertyObjectWithStringType()
        {
        }

        [AttributeDataType(ObjectType = "")]
        public void PropertyObjectWithStringTypeAndEmptyString()
        {
        }

        [AttributeDataType(ObjectType = new[] { 0, 0, 7 })]
        public void PropertyObjectWithArrayOfIntType()
        {
        }

        [AttributeDataType(ObjectType = ConsoleColor.Red)]
        public void PropertyObjectWithEnumType()
        {
        }

        [AttributeDataType(ObjectType = (ConsoleColor)int.MaxValue)]
        public void PropertyObjectWithEnumTypeAndUnknownValue()
        {
        }

        [AttributeDataType(ObjectType = SomeNestedTypes.NestedEnum.Read)]
        public void PropertyObjectWithNestedEnumType()
        {
        }

        [AttributeDataType(ObjectType = (SomeNestedTypes.NestedEnum)int.MaxValue)]
        public void PropertyObjectWithNestedEnumTypeAndUnknownValue()
        {
        }

        [AttributeDataType(ObjectType = AttributeTargets.Class | AttributeTargets.Enum)]
        public void PropertyObjectWithFlagsEnumType()
        {
        }

        [AttributeDataType(ObjectType = AttributeTargets.All)]
        public void PropertyObjectWithFlagsEnumTypeAndAllValue()
        {
        }

        [AttributeDataType(ObjectType = (AttributeTargets)0)]
        public void PropertyObjectWithFlagsEnumTypeAndUndefineValueZero()
        {
        }

        [AttributeDataType(ObjectType = SomeFlagsEnum.Read | SomeFlagsEnum.Write | SomeFlagsEnum.Open)]
        public void PropertyObjectWithDuplicateFlagsEnumTypeAndCombinationValue()
        {
        }

        [AttributeDataType(ObjectType = SomeNestedTypes.NestedFlagsEnum.Class | SomeNestedTypes.NestedFlagsEnum.Enum)]
        public void PropertyObjectWithNestedFlagsEnumType()
        {
        }

        [AttributeDataType(ObjectType = (SomeNestedTypes.NestedFlagsEnum)0)]
        public void PropertyObjectWithNestedFlagsEnumTypeAndUndefineValueZero()
        {
        }

        [AttributeDataType(ObjectType = NotApplyAttributeValidFlagsEnum.Class | NotApplyAttributeValidFlagsEnum.Enum)]
        public void PropertyObjectWithNotApplyAttributeValidFlagsEnumTypeAndCombinationValue()
        {
        }

        [AttributeDataType(ObjectType = NotApplyAttributeValidFlagsEnum.Class)]
        public void PropertyObjectWithNotApplyAttributeValidFlagsEnumTypeAndSingleValue()
        {
        }

        [AttributeDataType(ObjectType = (NotApplyAttributeInvalidFlagsEnum)5)]
        public void PropertyObjectWithNotApplyAttributeInvalidFlagsEnumTypeAndUnknownCombinationValue()
        {
        }

        [AttributeDataType(ObjectType = ObjCRuntime.Platform.Mac_10_8 | ObjCRuntime.Platform.Mac_Arch64)]
        public void PropertyObjectWithApplePlatformFlagsEnumType()
        {
        }

        [AttributeDataType(ObjectType = ObjCRuntime.Platform.None)]
        public void PropertyObjectWithApplePlatformFlagsEnumTypeAndNoneValue()
        {
        }
    }
}