forked from de4dot/de4dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTests.cs
1632 lines (1536 loc) · 37.7 KB
/
Tests.cs
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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright (C) 2011-2015 [email protected]
This file is part of de4dot.
de4dot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
de4dot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with de4dot. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections;
using System.Collections.Generic;
#pragma warning disable CS0693, CS0414, CS0169, CS0108, CS0067
namespace Test.Rename.Dll {
static class g {
static public T m<T>(T t) {
return t;
}
public delegate void Func1();
}
namespace test.fields.instance {
class Class1 {
public int var1 = g.m(1);
public int var2 = g.m(2);
protected int var3 = g.m(3);
protected int var4 = g.m(4);
private int var5 = g.m(5);
private int var6 = g.m(6);
}
class Class2 : Class1 {
public new int var1 = g.m(10);
public new int var2 = g.m(20);
protected new int var3 = g.m(30);
protected new int var4 = g.m(40);
private int var5 = g.m(50);
private int var6 = g.m(60);
}
class Class3 : Class1 {
public new int var1 = g.m(100);
public new int var2 = g.m(200);
protected new int var3 = g.m(300);
protected new int var4 = g.m(400);
private int var5 = g.m(500);
private int var6 = g.m(600);
}
}
namespace test.fields.Static {
class Class1 {
public static int var1 = g.m(1);
public static int var2 = g.m(2);
protected static int var3 = g.m(3);
protected static int var4 = g.m(4);
private static int var5 = g.m(5);
private static int var6 = g.m(6);
}
class Class2 : Class1 {
public new static int var1 = g.m(10);
public new static int var2 = g.m(20);
protected new static int var3 = g.m(30);
protected new static int var4 = g.m(40);
private static int var5 = g.m(50);
private static int var6 = g.m(60);
}
class Class3 : Class1 {
public new static int var1 = g.m(100);
public new static int var2 = g.m(200);
protected new static int var3 = g.m(300);
protected new static int var4 = g.m(400);
private static int var5 = g.m(500);
private static int var6 = g.m(600);
}
}
namespace test.props.instance {
class Class1 {
public int prop1 { get; set; }
public int prop2 { get; set; }
protected int prop3 { get; set; }
protected int prop4 { get; set; }
private int prop5 { get; set; }
private int prop6 { get; set; }
}
class Class2 : Class1 {
public new int prop1 { get; set; }
public new int prop2 { get; set; }
protected new int prop3 { get; set; }
protected new int prop4 { get; set; }
private int prop5 { get; set; }
private int prop6 { get; set; }
}
class Class3 : Class1 {
public new int prop1 { get; set; }
public new int prop2 { get; set; }
protected new int prop3 { get; set; }
protected new int prop4 { get; set; }
private int prop5 { get; set; }
private int prop6 { get; set; }
}
}
namespace test.props.Virtual {
class Class1 {
public virtual int prop1 { get; set; }
public virtual int prop2 { get; set; }
protected virtual int prop3 { get; set; }
protected virtual int prop4 { get; set; }
}
class Class2 : Class1 {
public override int prop1 { get; set; }
public override int prop2 { get; set; }
protected override int prop3 { get; set; }
protected override int prop4 { get; set; }
}
class Class3 : Class1 {
public override int prop1 { get; set; }
public override int prop2 { get; set; }
protected override int prop3 { get; set; }
protected override int prop4 { get; set; }
}
}
namespace test.props.Virtual.newslot {
class Class1 {
public virtual int prop1 { get; set; }
public virtual int prop2 { get; set; }
protected virtual int prop3 { get; set; }
protected virtual int prop4 { get; set; }
}
class Class2 : Class1 {
public new virtual int prop1 { get; set; }
public new virtual int prop2 { get; set; }
protected new virtual int prop3 { get; set; }
protected new virtual int prop4 { get; set; }
}
class Class3 : Class1 {
public new virtual int prop1 { get; set; }
public new virtual int prop2 { get; set; }
protected new virtual int prop3 { get; set; }
protected new virtual int prop4 { get; set; }
}
}
namespace test.props.Abstract {
abstract class Class1 {
public abstract int prop1 { get; set; }
public abstract int prop2 { get; set; }
protected abstract int prop3 { get; set; }
protected abstract int prop4 { get; set; }
}
class Class2 : Class1 {
public override int prop1 { get; set; }
public override int prop2 { get; set; }
protected override int prop3 { get; set; }
protected override int prop4 { get; set; }
}
class Class3 : Class1 {
public override int prop1 { get; set; }
public override int prop2 { get; set; }
protected override int prop3 { get; set; }
protected override int prop4 { get; set; }
}
}
namespace test.props.Interface1 {
interface IFace1 {
int prop1 { get; set; }
int prop2 { get; set; }
}
class Class1 : IFace1 {
public int prop1 { get; set; }
public int prop2 { get; set; }
}
}
namespace test.props.Interface2 {
interface IFace1 {
int prop1 { get; set; }
int prop2 { get; set; }
}
interface IFace2 {
int prop1 { get; set; }
int prop2 { get; set; }
}
class Class1 : IFace1, IFace2 {
public int prop1 { get; set; }
public int prop2 { get; set; }
}
}
namespace test.props.Interface3 {
interface IFace1 {
int prop1 { get; set; }
int prop2 { get; set; }
}
interface IFace2 {
int prop1 { get; set; }
int prop2 { get; set; }
}
class Class1 : IFace1, IFace2 {
public int prop1 { get; set; }
public int prop2 { get; set; }
int IFace1.prop1 { get; set; }
int IFace1.prop2 { get; set; }
int IFace2.prop1 { get; set; }
int IFace2.prop2 { get; set; }
}
}
namespace test.props.Interface4 {
interface IFace1 {
int prop1 { get; set; }
int prop2 { get; set; }
}
interface IFace2 : IFace1 {
new int prop1 { get; set; }
new int prop2 { get; set; }
}
class Class1 : IFace2 {
public int prop1 { get; set; }
public int prop2 { get; set; }
}
}
namespace test.props.Interface5 {
interface IFace1 {
int prop1 { get; set; }
int prop2 { get; set; }
int prop3 { get; set; }
int prop4 { get; set; }
}
interface IFace2 {
int prop5 { get; set; }
int prop6 { get; set; }
}
class Class1 : IFace1, IFace2 {
public int prop1 { get; set; }
public int prop2 { get; set; }
public int prop3 { get; set; }
public int prop4 { get; set; }
public int prop5 { get; set; }
public int prop6 { get; set; }
}
}
namespace test.props.Interface6 {
interface IFace1 {
int prop1 { get; set; }
}
interface IFace2 {
int prop2 { get; set; }
}
interface IFace3 {
int prop3 { get; set; }
}
interface IFace4 {
int prop4 { get; set; }
}
interface IFace5 {
int prop5 { get; set; }
}
class Class4 : IFace1, IFace2, IFace3 {
public int prop1 { get; set; }
public int prop2 { get; set; }
public int prop3 { get; set; }
}
class Class5 : IFace1 {
public int prop1 { get; set; }
}
class Class6 : IFace3, IFace4, IFace5 {
public int prop3 { get; set; }
public int prop4 { get; set; }
public int prop5 { get; set; }
}
}
namespace test.props.Interface7 {
interface IFace1 {
int prop1 { get; set; }
}
interface IFace2 {
int prop2 { get; set; }
}
interface IFace3 {
int prop3 { get; set; }
}
class Class1 {
}
class Class2 : Class1, IFace1 {
public int prop1 { get; set; }
}
class Class3 : Class1, IFace2 {
public int prop2 { get; set; }
}
class Class4 : Class3 {
}
class Class5 : Class3, IFace3 {
public int prop3 { get; set; }
}
}
namespace test.props.valuearg {
class Class1 {
int i;
int Prop1 {
get { return 1; }
set { i = value; }
}
}
}
namespace test.events.instance {
class Class1 {
public event g.Func1 event1;
public event g.Func1 event2;
protected event g.Func1 event3;
protected event g.Func1 event4;
private event g.Func1 event5;
private event g.Func1 event6;
}
class Class2 : Class1 {
public new event g.Func1 event1;
public new event g.Func1 event2;
protected new event g.Func1 event3;
protected new event g.Func1 event4;
private event g.Func1 event5;
private event g.Func1 event6;
}
class Class3 : Class1 {
public new event g.Func1 event1;
public new event g.Func1 event2;
protected new event g.Func1 event3;
protected new event g.Func1 event4;
private event g.Func1 event5;
private event g.Func1 event6;
}
}
namespace test.events.Virtual {
class Class1 {
public virtual event g.Func1 event1;
public virtual event g.Func1 event2;
protected virtual event g.Func1 event3;
protected virtual event g.Func1 event4;
}
class Class2 : Class1 {
public override event g.Func1 event1;
public override event g.Func1 event2;
protected override event g.Func1 event3;
protected override event g.Func1 event4;
}
class Class3 : Class1 {
public override event g.Func1 event1;
public override event g.Func1 event2;
protected override event g.Func1 event3;
protected override event g.Func1 event4;
}
}
namespace test.events.Virtual.newslot {
class Class1 {
public virtual event g.Func1 event1;
public virtual event g.Func1 event2;
protected virtual event g.Func1 event3;
protected virtual event g.Func1 event4;
}
class Class2 : Class1 {
public new virtual event g.Func1 event1;
public new virtual event g.Func1 event2;
protected new virtual event g.Func1 event3;
protected new virtual event g.Func1 event4;
}
class Class3 : Class1 {
public new virtual event g.Func1 event1;
public new virtual event g.Func1 event2;
protected new virtual event g.Func1 event3;
protected new virtual event g.Func1 event4;
}
}
namespace test.events.Abstract {
abstract class Class1 {
public abstract event g.Func1 event1;
public abstract event g.Func1 event2;
protected abstract event g.Func1 event3;
protected abstract event g.Func1 event4;
}
class Class2 : Class1 {
public override event g.Func1 event1;
public override event g.Func1 event2;
protected override event g.Func1 event3;
protected override event g.Func1 event4;
}
class Class3 : Class1 {
public override event g.Func1 event1;
public override event g.Func1 event2;
protected override event g.Func1 event3;
protected override event g.Func1 event4;
}
}
namespace test.events.Interface1 {
interface IFace1 {
event g.Func1 event1;
event g.Func1 event2;
}
class Class1 : IFace1 {
public event g.Func1 event1;
public event g.Func1 event2;
}
}
namespace test.events.Interface2 {
interface IFace1 {
event g.Func1 event1;
event g.Func1 event2;
}
interface IFace2 {
event g.Func1 event1;
event g.Func1 event2;
}
class Class1 : IFace1, IFace2 {
public event g.Func1 event1;
public event g.Func1 event2;
}
}
namespace test.events.Interface3 {
interface IFace1 {
event g.Func1 event1;
event g.Func1 event2;
}
interface IFace2 {
event g.Func1 event1;
event g.Func1 event2;
}
class Class1 : IFace1, IFace2 {
public event g.Func1 event1;
public event g.Func1 event2;
event g.Func1 IFace1.event1 {
add { }
remove { }
}
event g.Func1 IFace1.event2 {
add { }
remove { }
}
event g.Func1 IFace2.event1 {
add { }
remove { }
}
event g.Func1 IFace2.event2 {
add { }
remove { }
}
}
}
namespace test.events.Interface4 {
interface IFace1 {
event g.Func1 event1;
event g.Func1 event2;
}
interface IFace2 : IFace1 {
new event g.Func1 event1;
new event g.Func1 event2;
}
class Class1 : IFace2 {
public event g.Func1 event1;
public event g.Func1 event2;
}
}
namespace test.events.Interface5 {
interface IFace1 {
event g.Func1 event1;
event g.Func1 event2;
event g.Func1 event3;
event g.Func1 event4;
}
interface IFace2 {
event g.Func1 event5;
event g.Func1 event6;
}
class Class1 : IFace1, IFace2 {
public event g.Func1 event1;
public event g.Func1 event2;
public event g.Func1 event3;
public event g.Func1 event4;
public event g.Func1 event5;
public event g.Func1 event6;
}
}
namespace test.events.Interface6 {
interface IFace1 {
event g.Func1 event1;
}
interface IFace2 {
event g.Func1 event2;
}
interface IFace3 {
event g.Func1 event3;
}
interface IFace4 {
event g.Func1 event4;
}
interface IFace5 {
event g.Func1 event5;
}
class Class4 : IFace1, IFace2, IFace3 {
public event g.Func1 event1;
public event g.Func1 event2;
public event g.Func1 event3;
}
class Class5 : IFace1 {
public event g.Func1 event1;
}
class Class6 : IFace3, IFace4, IFace5 {
public event g.Func1 event3;
public event g.Func1 event4;
public event g.Func1 event5;
}
}
namespace test.events.Interface7 {
interface IFace1 {
event g.Func1 event1;
}
interface IFace2 {
event g.Func1 event2;
}
interface IFace3 {
event g.Func1 event3;
}
class Class1 {
}
class Class2 : Class1, IFace1 {
public event g.Func1 event1;
}
class Class3 : Class1, IFace2 {
public event g.Func1 event2;
}
class Class4 : Class3 {
}
class Class5 : Class3, IFace3 {
public event g.Func1 event3;
}
}
namespace test.events.valuearg {
class Class1 {
g.Func1 f;
event g.Func1 Event {
add { f += value; }
remove { f -= value; }
}
}
}
namespace test.methods.instance {
class Class1 {
public void meth1() { }
public void meth2() { }
protected void meth3() { }
protected void meth4() { }
private void meth5() { }
private void meth6() { }
}
class Class2 : Class1 {
public new void meth1() { }
public new void meth2() { }
protected new void meth3() { }
protected new void meth4() { }
private void meth5() { }
private void meth6() { }
}
class Class3 : Class1 {
public new void meth1() { }
public new void meth2() { }
protected new void meth3() { }
protected new void meth4() { }
private void meth5() { }
private void meth6() { }
}
}
namespace test.methods.Static {
class Class1 {
public static void meth1() { }
public static void meth2() { }
protected static void meth3() { }
protected static void meth4() { }
private static void meth5() { }
private static void meth6() { }
}
class Class2 : Class1 {
public new static void meth1() { }
public new static void meth2() { }
protected new static void meth3() { }
protected new static void meth4() { }
private static void meth5() { }
private static void meth6() { }
}
class Class3 : Class1 {
public new static void meth1() { }
public new static void meth2() { }
protected new static void meth3() { }
protected new static void meth4() { }
private static void meth5() { }
private static void meth6() { }
}
}
namespace test.methods.Virtual {
class Class1 {
public virtual void meth1() { }
public virtual void meth2() { }
protected virtual void meth3() { }
protected virtual void meth4() { }
}
class Class2 : Class1 {
public override void meth1() { }
public override void meth2() { }
protected override void meth3() { }
protected override void meth4() { }
}
class Class3 : Class1 {
public override void meth1() { }
public override void meth2() { }
protected override void meth3() { }
protected override void meth4() { }
}
}
namespace test.methods.Virtual.newslot {
class Class1 {
public virtual void meth1() { }
public virtual void meth2() { }
protected virtual void meth3() { }
protected virtual void meth4() { }
}
class Class2 : Class1 {
public new virtual void meth1() { }
public new virtual void meth2() { }
protected new virtual void meth3() { }
protected new virtual void meth4() { }
}
class Class3 : Class1 {
public new virtual void meth1() { }
public new virtual void meth2() { }
protected new virtual void meth3() { }
protected new virtual void meth4() { }
}
}
namespace test.methods.Abstract {
abstract class Class1 {
public abstract void meth1();
public abstract void meth2();
protected abstract void meth3();
protected abstract void meth4();
}
class Class2 : Class1 {
public override void meth1() { }
public override void meth2() { }
protected override void meth3() { }
protected override void meth4() { }
}
class Class3 : Class1 {
public override void meth1() { }
public override void meth2() { }
protected override void meth3() { }
protected override void meth4() { }
}
}
namespace test.methods.Interface1 {
interface IFace1 {
void meth1();
void meth2();
}
class Class1 : IFace1 {
public void meth1() { }
public void meth2() { }
}
}
namespace test.methods.Interface2 {
interface IFace1 {
void meth1();
void meth2();
}
interface IFace2 {
void meth1();
void meth2();
}
class Class1 : IFace1, IFace2 {
public void meth1() { }
public void meth2() { }
}
}
namespace test.methods.Interface3 {
interface IFace1 {
void meth1();
void meth2();
}
interface IFace2 {
void meth1();
void meth2();
}
class Class1 : IFace1, IFace2 {
public void meth1() { }
public void meth2() { }
void IFace1.meth1() { }
void IFace1.meth2() { }
void IFace2.meth1() { }
void IFace2.meth2() { }
}
}
namespace test.methods.Interface4 {
interface IFace1 {
void meth1();
void meth2();
}
interface IFace2 : IFace1 {
new void meth1();
new void meth2();
}
class Class1 : IFace2 {
public void meth1() { }
public void meth2() { }
}
}
namespace test.methods.Interface5 {
interface IFace1 {
void meth1();
void meth2();
void meth3();
void meth4();
}
interface IFace2 {
void meth5();
void meth6();
}
class Class1 : IFace1, IFace2 {
public void meth1() { }
public void meth2() { }
public void meth3() { }
public void meth4() { }
public void meth5() { }
public void meth6() { }
}
}
namespace test.methods.Interface6 {
interface IFace1 {
void meth1();
}
interface IFace2 {
void meth2();
}
interface IFace3 {
void meth3();
}
interface IFace4 {
void meth4();
}
interface IFace5 {
void meth5();
}
class Class4 : IFace1, IFace2, IFace3 {
public void meth1() { }
public void meth2() { }
public void meth3() { }
}
class Class5 : IFace1 {
public void meth1() { }
}
class Class6 : IFace3, IFace4, IFace5 {
public void meth3() { }
public void meth4() { }
public void meth5() { }
}
}
namespace test.methods.Interface7 {
interface IFace1 {
void meth1();
}
interface IFace2 {
void meth2();
}
interface IFace3 {
void meth3();
}
class Class1 {
}
class Class2 : Class1, IFace1 {
public void meth1() { }
}
class Class3 : Class1, IFace2 {
public void meth2() { }
}
class Class4 : Class3 {
}
class Class5 : Class3, IFace3 {
public void meth3() { }
}
}
namespace test.methods.signatures {
enum consts {
val1, val2, val3,
}
struct data1 {
int i;
}
struct data2 {
int i;
}
class Class1 {
void meth1() { }
void meth1(int i) { }
unsafe void meth1(int* i) { }
void meth1(int i, int j) { }
void meth1(short i) { }
void meth1(string s) { }
void meth1(consts c) { }
void meth1(data1 d) { }
void meth1(data2 d) { }
void meth1(List<int> l1, List<int> l2) { }
void meth1(List<short> l1, List<short> l2) { }
void meth1(List<int> l1, List<short> l2) { }
void meth1(List<short> l1, List<int> l2) { }
void meth1(List<List<List<List<int>>>> l1, List<int> l2) { }
void meth1(List<List<List<List<int>>>> l1, List<List<int>> l2) { }
void meth1(List<List<List<List<int>>>> l1, List<List<List<int>>> l2) { }
void meth1(List<List<List<List<int>>>> l1, List<List<List<List<int>>>> l2) { }
void meth1(List<List<List<List<int>>>> l1, List<List<List<List<short>>>> l2) { }
void meth1(List<List<List<List<short>>>> l1, List<List<List<List<int>>>> l2) { }
void meth1(List<List<List<List<short>>>> l1, List<List<List<List<short>>>> l2) { }
void meth2() { }
void meth2(int i) { }
void meth2(int i, int j) { }
}
}
namespace test.interfaces.test1 {
interface IFace1 {
void meth1();
void meth1(int i);
void meth1(string s);
event g.Func1 Event1;
int Prop1 { get; set; }
int Prop2 { get; set; }
string Prop3 { get; set; }
}
interface IFace2 : IFace1 {
void meth1();
void meth1(int i);
void meth1(string s);
event g.Func1 Event1;
int Prop1 { get; set; }
int Prop2 { get; set; }
string Prop3 { get; set; }
}
class Class1 : IFace2 {
public void meth1() { }
public void meth1(int i) { }
public void meth1(string s) { }
public event g.Func1 Event1;
public int Prop1 { get; set; }
public int Prop2 { get; set; }
public string Prop3 { get; set; }
}
}
namespace test.enums.test1 {
enum consts1 { }
enum consts2 { a, b, c, d, e }
}
namespace test.structs.test1 {
struct d1 { }
struct d2 {
int i;
int j;
string s;
d1 d1;
}
}
namespace test.structs.test2 {
interface IFace1 {
int prop1 { get; set; }
string prop2 { get; set; }
object meth1(int i);
}
interface IFace2 {
int prop3 { get; set; }
void meth1(int i); // different return type
}
struct d1 : IFace1, IFace2 {
public int prop1 { get; set; }
public string prop2 { get; set; }
public object meth1(int i) { return null; }
public int prop3 { get; set; }
void IFace2.meth1(int i) { }
}
}
namespace test.variables.test1 {
class Class1 {
byte aByte = 123;
byte[] anArray = new byte[11];
byte[][] anArray2 = new byte[11][];
List<byte[]> aList = new List<byte[]>();
short aShort;
int anInt;
string aString;
Class1 aClass;
}
}
namespace test.generic.types.methods1 {
class Class1<T, U, V> {
T a;
U b;
V c;
void meth1(T a) { }
void meth1(U a) { }
void meth1(V a) { }
void meth1(List<T> a) { }
void meth1(List<U> a) { }
void meth1(List<V> a) { }
}
}
namespace test.generic.types.methods2 {
class Class1<T, U, V> {
void meth1(int i) { }
void meth1<W>(int i) { }
void meth1<W, X>(int i) { }
void meth1<W>(W w) { }
void meth1<W>(T t) { }
void meth1<W>(U u) { }
void meth1<W>(V v) { }
void meth1(T t, T t2) { }
void meth1(U u, U u2) { }
void meth1(V v, V v2) { }
void meth1(T t, U u) { }
void meth1(T t, V V) { }
void meth1(U u, T t) { }
void meth1(U u, V v) { }
void meth1(V v, T t) { }
void meth1(V v, U u) { }
void meth1<W>(W w, W w2) { }
void meth1<W>(T t, T t2) { }
void meth1<W>(U u, U u2) { }
void meth1<W>(V v, V v2) { }
void meth1<W>(W w, T t) { }
void meth1<W>(W w, U u) { }
void meth1<W>(W w, V v) { }
void meth1<W>(T t, W w) { }
void meth1<W>(U u, W w) { }
void meth1<W>(V v, W w) { }
}
}
namespace test.generic.types.instance {
class Class1<T, U> {
public T meth1(T t) { return t; }
public U meth1(U u) { return u; }
public V meth1<V>(T t) { return default(V); }
public V meth2<V>(V v) { return v; }
}
static class Class2 {