Implemented interface members:
30 references to Count
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
AttributeDictionary.cs (17)
76
Debug.Assert(index >= 0 && index <
Count
&& _items != null);
82
Debug.Assert(index >= 0 && index <=
Count
);
95
Debug.Assert(index >= 0 && index <=
Count
);
108
Debug.Assert(index >= 0 && index <
Count
);
121
if (
Count
== 0)
127
var end =
Count
- 1;
216
if (
Count
== 0)
234
for (var i = 0; i <
Count
; i++)
356
return _index < _attributes.
Count
;
375
public int Count => _attributes.
Count
;
393
for (var i = 0; i < _attributes.
Count
; i++)
413
for (var i = 0; i < _attributes.
Count
; i++)
463
return _index < _attributes.
Count
;
482
public int Count => _attributes.
Count
;
498
for (var i = 0; i < _attributes.
Count
; i++)
518
for (var i = 0; i < _attributes.
Count
; i++)
568
return _index < _attributes.
Count
;
HtmlHelper.cs (2)
1063
if (tagBuilder.Attributes.
Count
== 0)
1068
else if (tagBuilder.Attributes.
Count
== 1 &&
Rendering\TagBuilder.cs (1)
237
if (_attributes != null && _attributes.
Count
> 0)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
AttributeDictionaryTest.cs (10)
20
Assert.Equal(3, attributes.
Count
);
40
Assert.Equal(3, attributes.
Count
);
158
var array = new KeyValuePair<string, string>[attributes.
Count
+ 1];
222
Assert.Equal(2, attributes.
Count
);
244
Assert.Equal(3, attributes.
Count
);
267
Assert.Equal(2, attributes.
Count
);
289
Assert.Equal(3, attributes.
Count
);
404
Assert.Equal(3, attributes.
Count
);
426
Assert.Equal(4, attributes.
Count
);
449
Assert.Equal(3, attributes.
Count
);