@@ -21,31 +21,31 @@ public class Baz : INamed, IComparable
21
21
private Int32 _count ;
22
22
private String _name ;
23
23
private Foo _foo ;
24
- private IList _stringList ;
25
- private IList _fees ;
26
- private IList _customs ;
27
- private IList _topComponents ;
28
- private IDictionary _fooToGlarch ;
29
- private IDictionary _fooComponentToFoo ;
30
- private IDictionary _glarchToFoo ;
31
- private IDictionary _stringDateMap ;
32
- private IDictionary _topGlarchez ;
33
- private IDictionary _cachedMap ;
34
- private IDictionary _stringGlarchMap ;
35
- private IDictionary _anyToAny ;
36
- private IList _manyToAny ;
24
+ private IList < string > _stringList ;
25
+ private IList < Fee > _fees ;
26
+ private IList < string [ ] > _customs ;
27
+ private IList < FooComponent > _topComponents ;
28
+ private IDictionary < Foo , GlarchProxy > _fooToGlarch ;
29
+ private IDictionary < FooComponent , Foo > _fooComponentToFoo ;
30
+ private IDictionary < Foo , GlarchProxy > _glarchToFoo ;
31
+ private IDictionary < string , DateTime ? > _stringDateMap ;
32
+ private IDictionary < char , GlarchProxy > _topGlarchez ;
33
+ private IDictionary < Baz , CompositeElement > _cachedMap ;
34
+ private IDictionary < string , Glarch > _stringGlarchMap ;
35
+ private IDictionary < object , object > _anyToAny ;
36
+ private IList < object > _manyToAny ;
37
37
private ISet < FooProxy > _fooSet ;
38
38
private ISet < string > _stringSet ;
39
39
private ISet < Bar > _topFoos ;
40
40
private ISet < BarProxy > _cascadingBars ;
41
41
private ISet < CompositeElement > _cached ;
42
42
private ISet < Sortable > _sortablez ;
43
- private IList _bag ;
44
- private IList _fooBag ;
45
- private IList _idFooBag ;
46
- private IList _byteBag ;
47
- private IList _bazez ;
48
- private IList _parts ;
43
+ private IList < string > _bag ;
44
+ private IList < Foo > _fooBag ;
45
+ private IList < Foo > _idFooBag ;
46
+ private IList < byte [ ] > _byteBag ;
47
+ private IList < Baz > _bazez ;
48
+ private IList < Part > _parts ;
49
49
50
50
#endregion
51
51
@@ -110,7 +110,7 @@ public Foo Foo
110
110
/// <summary>
111
111
/// Get/set for stringList
112
112
/// </summary>
113
- public IList StringList
113
+ public IList < string > StringList
114
114
{
115
115
get { return this . _stringList ; }
116
116
set { this . _stringList = value ; }
@@ -119,7 +119,7 @@ public IList StringList
119
119
/// <summary>
120
120
/// Get/set for fees
121
121
/// </summary>
122
- public IList Fees
122
+ public IList < Fee > Fees
123
123
{
124
124
get { return _fees ; }
125
125
set { _fees = value ; }
@@ -128,7 +128,7 @@ public IList Fees
128
128
/// <summary>
129
129
/// Get/set for customs
130
130
/// </summary>
131
- public IList Customs
131
+ public IList < string [ ] > Customs
132
132
{
133
133
get { return this . _customs ; }
134
134
set { this . _customs = value ; }
@@ -137,7 +137,7 @@ public IList Customs
137
137
/// <summary>
138
138
/// Get/set for topComponents
139
139
/// </summary>
140
- public IList TopComponents
140
+ public IList < FooComponent > TopComponents
141
141
{
142
142
get { return this . _topComponents ; }
143
143
set { this . _topComponents = value ; }
@@ -146,7 +146,7 @@ public IList TopComponents
146
146
/// <summary>
147
147
/// Get/set for fooToGlarch
148
148
/// </summary>
149
- public IDictionary FooToGlarch
149
+ public IDictionary < Foo , GlarchProxy > FooToGlarch
150
150
{
151
151
get { return this . _fooToGlarch ; }
152
152
set { this . _fooToGlarch = value ; }
@@ -155,7 +155,7 @@ public IDictionary FooToGlarch
155
155
/// <summary>
156
156
/// Get/set for fooComponentToFoo
157
157
/// </summary>
158
- public IDictionary FooComponentToFoo
158
+ public IDictionary < FooComponent , Foo > FooComponentToFoo
159
159
{
160
160
get { return this . _fooComponentToFoo ; }
161
161
set { this . _fooComponentToFoo = value ; }
@@ -164,7 +164,7 @@ public IDictionary FooComponentToFoo
164
164
/// <summary>
165
165
/// Get/set for glarchToFoo
166
166
/// </summary>
167
- public IDictionary GlarchToFoo
167
+ public IDictionary < Foo , GlarchProxy > GlarchToFoo
168
168
{
169
169
get { return this . _glarchToFoo ; }
170
170
set { this . _glarchToFoo = value ; }
@@ -173,7 +173,7 @@ public IDictionary GlarchToFoo
173
173
/// <summary>
174
174
/// Get/set for stringDateMap
175
175
/// </summary>
176
- public IDictionary StringDateMap
176
+ public IDictionary < string , DateTime ? > StringDateMap
177
177
{
178
178
get { return this . _stringDateMap ; }
179
179
set { this . _stringDateMap = value ; }
@@ -182,7 +182,7 @@ public IDictionary StringDateMap
182
182
/// <summary>
183
183
/// Get/set for topGlarchez
184
184
/// </summary>
185
- public IDictionary TopGlarchez
185
+ public IDictionary < char , GlarchProxy > TopGlarchez
186
186
{
187
187
get { return this . _topGlarchez ; }
188
188
set { this . _topGlarchez = value ; }
@@ -191,7 +191,7 @@ public IDictionary TopGlarchez
191
191
/// <summary>
192
192
/// Get/set for cachedMap
193
193
/// </summary>
194
- public IDictionary CachedMap
194
+ public IDictionary < Baz , CompositeElement > CachedMap
195
195
{
196
196
get { return this . _cachedMap ; }
197
197
set { this . _cachedMap = value ; }
@@ -200,7 +200,7 @@ public IDictionary CachedMap
200
200
/// <summary>
201
201
/// Get/set for stringGlarchMap
202
202
/// </summary>
203
- public IDictionary StringGlarchMap
203
+ public IDictionary < string , Glarch > StringGlarchMap
204
204
{
205
205
get { return this . _stringGlarchMap ; }
206
206
set { this . _stringGlarchMap = value ; }
@@ -209,7 +209,7 @@ public IDictionary StringGlarchMap
209
209
/// <summary>
210
210
/// Get/set for anyToAny
211
211
/// </summary>
212
- public IDictionary AnyToAny
212
+ public IDictionary < object , object > AnyToAny
213
213
{
214
214
get { return this . _anyToAny ; }
215
215
set { this . _anyToAny = value ; }
@@ -218,7 +218,7 @@ public IDictionary AnyToAny
218
218
/// <summary>
219
219
/// Get/set for manyToAny
220
220
/// </summary>
221
- public IList ManyToAny
221
+ public IList < object > ManyToAny
222
222
{
223
223
get { return this . _manyToAny ; }
224
224
set { this . _manyToAny = value ; }
@@ -328,7 +328,7 @@ public ISet<Sortable> Sortablez
328
328
/// <summary>
329
329
/// Get/set for bag
330
330
/// </summary>
331
- public IList Bag
331
+ public IList < string > Bag
332
332
{
333
333
get { return this . _bag ; }
334
334
set { this . _bag = value ; }
@@ -337,7 +337,7 @@ public IList Bag
337
337
/// <summary>
338
338
/// Get/set for fooBag
339
339
/// </summary>
340
- public IList FooBag
340
+ public IList < Foo > FooBag
341
341
{
342
342
get { return this . _fooBag ; }
343
343
set { this . _fooBag = value ; }
@@ -346,7 +346,7 @@ public IList FooBag
346
346
/// <summary>
347
347
/// Get/set for bazez
348
348
/// </summary>
349
- public IList Bazez
349
+ public IList < Baz > Bazez
350
350
{
351
351
get { return this . _bazez ; }
352
352
set { this . _bazez = value ; }
@@ -355,7 +355,7 @@ public IList Bazez
355
355
/// <summary>
356
356
/// Get/set for idFooBag
357
357
/// </summary>
358
- public IList IdFooBag
358
+ public IList < Foo > IdFooBag
359
359
{
360
360
get { return this . _idFooBag ; }
361
361
set { this . _idFooBag = value ; }
@@ -364,7 +364,7 @@ public IList IdFooBag
364
364
/// <summary>
365
365
/// Get/set for byteBag
366
366
/// </summary>
367
- public IList ByteBag
367
+ public IList < byte [ ] > ByteBag
368
368
{
369
369
get { return this . _byteBag ; }
370
370
set { this . _byteBag = value ; }
@@ -373,7 +373,7 @@ public IList ByteBag
373
373
/// <summary>
374
374
/// Get/set for parts
375
375
/// </summary>
376
- public IList Parts
376
+ public IList < Part > Parts
377
377
{
378
378
get { return this . _parts ; }
379
379
set { this . _parts = value ; }
@@ -387,18 +387,18 @@ public void SetDefaults()
387
387
388
388
StringSet = new HashSet < string > { "foo" , "bar" , "baz" } ;
389
389
390
- StringDateMap = new SortedList ( ) ;
390
+ StringDateMap = new SortedList < string , DateTime ? > ( ) ;
391
391
StringDateMap . Add ( "now" , DateTime . Now ) ;
392
392
StringDateMap . Add ( "never" , null ) ; // value is persisted since NH-2199
393
393
// according to SQL Server the big bag happened in 1753 ;)
394
394
StringDateMap . Add ( "big bang" , new DateTime ( 1753 , 01 , 01 ) ) ;
395
395
//StringDateMap.Add( "millenium", new DateTime( 2000, 01, 01 ) );
396
396
StringArray = StringSet . ToArray ( ) ;
397
- StringList = new ArrayList ( StringArray ) ;
397
+ StringList = new List < string > ( StringArray ) ;
398
398
IntArray = new int [ ] { 1 , 3 , 3 , 7 } ;
399
399
FooArray = new Foo [ 0 ] ;
400
400
401
- Customs = new ArrayList ( ) ;
401
+ Customs = new List < string [ ] > ( ) ;
402
402
Customs . Add ( new String [ ] { "foo" , "bar" } ) ;
403
403
Customs . Add ( new String [ ] { "A" , "B" } ) ;
404
404
Customs . Add ( new String [ ] { "1" , "2" } ) ;
@@ -419,12 +419,12 @@ public void SetDefaults()
419
419
420
420
Count = 667 ;
421
421
Name = "Bazza" ;
422
- TopComponents = new ArrayList ( ) ;
422
+ TopComponents = new List < FooComponent > ( ) ;
423
423
TopComponents . Add ( new FooComponent ( "foo" , 11 , new DateTime [ ] { today , new DateTime ( 2123 , 1 , 1 ) } , null ) ) ;
424
424
TopComponents . Add (
425
425
new FooComponent ( "bar" , 22 , new DateTime [ ] { new DateTime ( 2007 , 2 , 3 ) , new DateTime ( 1945 , 6 , 1 ) } , null ) ) ;
426
426
TopComponents . Add ( null ) ;
427
- Bag = new ArrayList ( ) ;
427
+ Bag = new List < string > ( ) ;
428
428
Bag . Add ( "duplicate" ) ;
429
429
Bag . Add ( "duplicate" ) ;
430
430
Bag . Add ( "duplicate" ) ;
@@ -440,7 +440,7 @@ public void SetDefaults()
440
440
ce2 . Bar = "barxxx" ;
441
441
Cached . Add ( ce ) ;
442
442
Cached . Add ( ce2 ) ;
443
- CachedMap = new SortedList ( ) ;
443
+ CachedMap = new SortedList < Baz , CompositeElement > ( ) ;
444
444
CachedMap . Add ( this , ce ) ;
445
445
}
446
446
0 commit comments