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