ImmutableDictionary<T,U>

Overview

Base dictionary class that works as a dictionary, but doesn't allow changes beyond the initial creation.

Location

  • Reference: Island.fx
  • Namespace: RemObjects.Elements.System
  • Platforms: Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Descendants

Implements

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

ImmutableDictionary<T,U>()

 

init()

 

ImmutableDictionary<T,U>()

ContainsKey

Returns true if this key is contained in this dictionary.

 

method ContainsKey(Key: T): Boolean

 

Boolean ContainsKey(T Key)

 

func ContainsKey(_ Key: T) -> Boolean

 

Boolean ContainsKey(T Key)

Parameters:

  • Key:

ContainsValue

Loops the dictionary and returns true if this value is contained in this dictionary.

 

method ContainsValue(Value: U): Boolean

 

Boolean ContainsValue(U Value)

 

func ContainsValue(_ Value: U) -> Boolean

 

Boolean ContainsValue(U Value)

Parameters:

  • Value:

Count

Returns the number of elements in this dictionary.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Int32 Count { __get; }

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

ForEach

Loops the dictionary, triggering the action for each element.

 

method ForEach(Action: Action<KeyValuePair<T, U>>)

 

void ForEach(Action<KeyValuePair<T, U>> Action)

 

func ForEach(_ Action: Action<KeyValuePair<T, U>>)

 

void ForEach(Action1<KeyValuePair<T, U>> Action)

Parameters:

  • Action:

GetEnumerator  virtual

Iterator.

 

method GetEnumerator: IEnumerator<KeyValuePair<T, U>>

 

IEnumerator<KeyValuePair<T, U>> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<KeyValuePair<T, U>>

 

IEnumerator<KeyValuePair<T, U>> GetEnumerator()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetSequence

Iterator.

 

method GetSequence: IEnumerable<KeyValuePair<T,U>>

 

IEnumerable<KeyValuePair<T,U>> GetSequence()

 

func GetSequence() -> IEnumerable<KeyValuePair<T,U>>

 

IEnumerable<KeyValuePair<T,U>> GetSequence()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

Item  virtual

Access an item by key, throws if it does not exist.

 

property Item[Key: T]: U read write;

 

U Item[T Key] { get; set; }

 

subscript Item(_ Key: T) -> U { get{} set{} }

 

U Item[T Key] { __get; __set; }

Keys

Iterator on the keys of this dictionary.

 

property Keys: IEnumerable<T> read;

 

IEnumerable<T> Keys { get; }

 

var Keys: IEnumerable<T> { get{} }

 

IEnumerable<T> Keys { __get; }

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

ToNSDictionary iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

Converts a dictionary to NSDictionary.

 

method ToNSDictionary: NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

 

func ToNSDictionary() -> NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

ToNSMutableDictionary iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

Converts a dictionary to NSMutableDictionary.

 

method ToNSMutableDictionary: NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

func ToNSMutableDictionary() -> NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

TryGetValue

Gets a value from the dictionary by key, or returns false if it's not in the dictionary.

 

method TryGetValue(aKey: T; out aValue: U): Boolean

 

Boolean TryGetValue(T aKey, out U aValue)

 

func TryGetValue(_ aKey: T, _ aValue: U) -> Boolean

 

Boolean TryGetValue(T aKey, __out U aValue)

Parameters:

  • aKey:
  • aValue:

Values

Value iterator.

 

property Values: IEnumerable<U> read;

 

IEnumerable<U> Values { get; }

 

var Values: IEnumerable<U> { get{} }

 

IEnumerable<U> Values { __get; }

 

Count

Returns the number of elements in this dictionary.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Int32 Count { __get; }

Item  virtual

Access an item by key, throws if it does not exist.

 

property Item[Key: T]: U read write;

 

U Item[T Key] { get; set; }

 

subscript Item(_ Key: T) -> U { get{} set{} }

 

U Item[T Key] { __get; __set; }

Keys

Iterator on the keys of this dictionary.

 

property Keys: IEnumerable<T> read;

 

IEnumerable<T> Keys { get; }

 

var Keys: IEnumerable<T> { get{} }

 

IEnumerable<T> Keys { __get; }

Values

Value iterator.

 

property Values: IEnumerable<U> read;

 

IEnumerable<U> Values { get; }

 

var Values: IEnumerable<U> { get{} }

 

IEnumerable<U> Values { __get; }

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

ImmutableDictionary<T,U>()

 

init()

 

ImmutableDictionary<T,U>()

ContainsKey

Returns true if this key is contained in this dictionary.

 

method ContainsKey(Key: T): Boolean

 

Boolean ContainsKey(T Key)

 

func ContainsKey(_ Key: T) -> Boolean

 

Boolean ContainsKey(T Key)

Parameters:

  • Key:

ContainsValue

Loops the dictionary and returns true if this value is contained in this dictionary.

 

method ContainsValue(Value: U): Boolean

 

Boolean ContainsValue(U Value)

 

func ContainsValue(_ Value: U) -> Boolean

 

Boolean ContainsValue(U Value)

Parameters:

  • Value:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

ForEach

Loops the dictionary, triggering the action for each element.

 

method ForEach(Action: Action<KeyValuePair<T, U>>)

 

void ForEach(Action<KeyValuePair<T, U>> Action)

 

func ForEach(_ Action: Action<KeyValuePair<T, U>>)

 

void ForEach(Action1<KeyValuePair<T, U>> Action)

Parameters:

  • Action:

GetEnumerator  virtual

Iterator.

 

method GetEnumerator: IEnumerator<KeyValuePair<T, U>>

 

IEnumerator<KeyValuePair<T, U>> GetEnumerator()

 

func GetEnumerator() -> IEnumerator<KeyValuePair<T, U>>

 

IEnumerator<KeyValuePair<T, U>> GetEnumerator()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetSequence

Iterator.

 

method GetSequence: IEnumerable<KeyValuePair<T,U>>

 

IEnumerable<KeyValuePair<T,U>> GetSequence()

 

func GetSequence() -> IEnumerable<KeyValuePair<T,U>>

 

IEnumerable<KeyValuePair<T,U>> GetSequence()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToNSDictionary iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

Converts a dictionary to NSDictionary.

 

method ToNSDictionary: NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

 

func ToNSDictionary() -> NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

ToNSMutableDictionary iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k

Converts a dictionary to NSMutableDictionary.

 

method ToNSMutableDictionary: NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

func ToNSMutableDictionary() -> NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

TryGetValue

Gets a value from the dictionary by key, or returns false if it's not in the dictionary.

 

method TryGetValue(aKey: T; out aValue: U): Boolean

 

Boolean TryGetValue(T aKey, out U aValue)

 

func TryGetValue(_ aKey: T, _ aValue: U) -> Boolean

 

Boolean TryGetValue(T aKey, __out U aValue)

Parameters:

  • aKey:
  • aValue:

Descendants