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