Skip to content

JSMap structure

C#
public struct JSMap : IDictionary<JSValue, JSValue>, IJSValue<JSMap>

Public Members

namedescription
JSMap()Creates a new empty JS Map.
JSMap(…)Creates a new JS Map with entries from an iterable (such as another map) whose elements are key-value pairs.
Count { get; }
Item { get; set; }
Keys { get; }
Values { get; }
Add(…)
AddRange<TKey,TValue>(…)
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()
ContainsKey(…)
Equals(…)Compares two JS values using JS "strict" equality.
override Equals(…)
GetEnumerator()
override GetHashCode()
Is<T>()Checks if the T struct can be created from this instance`.
Remove(…)
TryGetValue(…)
operator ==Compares two JS values using JS "strict" equality.
explicit operatorExplicitly converts a JSValue to a nullable JSMap. (3 operators)
implicit operatorImplicitly converts a JSMap to a JSValue. (2 operators)
operator !=Compares two JS values using JS "strict" equality.
struct Collection
struct Enumerator

See Also

Released under the MIT license