Skip to content

JSSet structure

C#
public struct JSSet : IJSValue<JSSet>, ISet<JSValue>

Public Members

namedescription
JSSet()Creates a new empty JS Set.
JSSet(…)Creates a new JS Set with values from an iterable (such as another set).
Count { get; }
Add(…)
As<T>()Tries to create a T struct from this instance. It returns null if the T struct cannot be created.
AsUnchecked<T>()Creates a T struct from this instance without checking the enclosed handle type. It must be used only when the handle type is known to be correct.
CastTo<T>()Creates a T struct from this instance. It throws InvalidCastException in case of failure.
Clear()
Contains(…)
CopyTo(…)
Equals(…)Compares two JS values using JS "strict" equality.
override Equals(…)
ExceptWith(…)
GetEnumerator()
override GetHashCode()
IntersectWith(…)
Is<T>()Checks if the T struct can be created from this instance`.
IsProperSubsetOf(…)
IsProperSupersetOf(…)
IsSubsetOf(…)
IsSupersetOf(…)
Overlaps(…)
Remove(…)
SetEquals(…)
SymmetricExceptWith(…)
UnionWith(…)
operator ==Compares two JS values using JS "strict" equality.
explicit operatorExplicitly converts a JSValue to a nullable JSSet. (4 operators)
implicit operatorImplicitly converts a JSSet to a JSValue. (3 operators)
operator !=Compares two JS values using JS "strict" equality.

See Also

Released under the MIT license