![]() |
SortedSet class represents the collection of objects in sorted order. This class comes under the System.Collections.Generic namespace. SortedSet<T>.IsSupersetOf(IEnumerable<T>) method is used to check whether a SortedSet<T> object is a superset of the specified collection. Properties:
Syntax: mySet1.IsSupersetOf(mySet2); Here, mySet1 and mySet2 are the two objects of SortedSets. Return Value: This method returns True if the SortedSet<T> object is superset of other, otherwise returns false. Exception: This method will give ArgumentNullException if the SortedSet is null. Below are the programs to illustrate the use of SortedSet<T>.IsSupersetOf(IEnumerable<T>) method: Example 1 :
Output:
True Example 2:
Output:
False Reference: |
Reffered: https://www.geeksforgeeks.org
C# |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 6 |