![]() |
SortedSet class represents the collection of objects in sorted order. This class comes under the System.Collections.Generic namespace. SortedSet<T>.Count Property is used to get the number of elements in the SortedSet. Properties:
Syntax: mySortedSet.Count Here, mySortedSet is a SortedSet. Below given are some examples to understand the implementation in a better way: Example 1:
Output:
The number of elements in mySortedSet are: 5 Example 2:
Output:
The number of elements in mySortedSet are: 4 Reference: |
Reffered: https://www.geeksforgeeks.org
C# |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 8 |