![]() |
VOOZH | about |
public int Count { get; }
Return Value: The number of elements actually contained in the Collection<T>.
Below given are some examples to understand the implementation in a better way:
Example 1:
Output:
Count : 5 A B C D EExample 2:
Count : 4 2 3 4 5Note: Retrieving the value of this property is an O(1) operation. Reference: