ImmutableDictionary<T,U>

Overview

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

Location


 

constructor    (declared in Object)

 

constructor

 

ImmutableDictionary<T,U>()

 

init()

 

ImmutableDictionary<T,U>()

 

Sub New()

constructor (Int32)

 

constructor(aCapacity: Int32)

 

ImmutableDictionary<T,U>(Int32 aCapacity)

 

init(_ aCapacity: Int32)

 

ImmutableDictionary<T,U>(Int32 aCapacity)

 

Sub New(aCapacity As Int32)

Parameters:

  • aCapacity:

 

constructor(aCapacity: Int32; aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(Int32 aCapacity, RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

init(_ aCapacity: Int32, _ aComparer: RemObjects.Elements.System.IEqualityComparer<T>?)

 

ImmutableDictionary<T,U>(Int32 aCapacity, RemObjects.Elements.System.IEqualityComparer<T> aComparer)

 

Sub New(aCapacity As Int32, aComparer As RemObjects.Elements.System.IEqualityComparer<T>?)

Parameters:

  • aCapacity:
  • aComparer:

 

constructor(aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

ImmutableDictionary<T,U>(RemObjects.Elements.System.IEqualityComparer<T> aComparer)

Parameters:

  • aComparer:

constructor (not nullable ImmutableDictionary<T, U>)

 

constructor(aDictionary: not nullable ImmutableDictionary<T, U>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U>! aDictionary)

 

init(_ aDictionary: ImmutableDictionary<T, U>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U> aDictionary)

 

Sub New(aDictionary As ImmutableDictionary<T, U>)

Parameters:

  • aDictionary:

 

constructor(aDictionary: not nullable ImmutableDictionary<T, U>; aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U>! aDictionary, RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U> aDictionary, RemObjects.Elements.System.IEqualityComparer<T> aComparer)

Parameters:

  • aDictionary:
  • aComparer:

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)

 

Function ContainsKey(Key As T) As Boolean

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)

 

Function ContainsValue(Value As U) As Boolean

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; }

 

ReadOnly Property Count() As Int32

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

ForEach

 

method ForEach(Action: Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.System.KeyValuePair<T,U>> Action)

 

func ForEach(_ Action: Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.System.KeyValuePair<T,U>> Action)

 

Sub ForEach(Action As Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

Parameters:

  • Action:

GetEnumerator  virtual

Iterator.


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()

 

Function GetHashCode() As Int32

GetSequence

Iterator.


GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

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; }

 

Property Item(Key As T) As U

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; }

 

ReadOnly Property Keys() As IEnumerable<T>

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)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ToNSDictionary iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, watchOS, watchOS Simulator

Converts a dictionary to NSDictionary.

 

method ToNSDictionary: NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

 

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

 

NSDictionary<T, U> ToNSDictionary()

 

Function ToNSDictionary() As NSDictionary<T, U>

ToNSMutableDictionary iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, watchOS, watchOS Simulator

Converts a dictionary to NSMutableDictionary.

 

method ToNSMutableDictionary: NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

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

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

Function ToNSMutableDictionary() As NSMutableDictionary<T, U>

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

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)

 

Function TryGetValue(aKey As T, <OutAttribute> ByRef aValue As U) As Boolean

Parameters:

  • aKey:
  • aValue:

Values

Value iterator.

 

property Values: IEnumerable<U> read;

 

IEnumerable<U> Values { get; }

 

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

 

IEnumerable<U> Values { __get; }

 

ReadOnly Property Values() As IEnumerable<U>

 

Count

Returns the number of elements in this dictionary.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Int32 Count { __get; }

 

ReadOnly Property Count() As Int32

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; }

 

Property Item(Key As T) As U

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; }

 

ReadOnly Property Keys() As IEnumerable<T>

Values

Value iterator.

 

property Values: IEnumerable<U> read;

 

IEnumerable<U> Values { get; }

 

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

 

IEnumerable<U> Values { __get; }

 

ReadOnly Property Values() As IEnumerable<U>

 

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)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor    (declared in Object)

 

constructor

 

ImmutableDictionary<T,U>()

 

init()

 

ImmutableDictionary<T,U>()

 

Sub New()

constructor (Int32)

 

constructor(aCapacity: Int32)

 

ImmutableDictionary<T,U>(Int32 aCapacity)

 

init(_ aCapacity: Int32)

 

ImmutableDictionary<T,U>(Int32 aCapacity)

 

Sub New(aCapacity As Int32)

Parameters:

  • aCapacity:

 

constructor(aCapacity: Int32; aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(Int32 aCapacity, RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

init(_ aCapacity: Int32, _ aComparer: RemObjects.Elements.System.IEqualityComparer<T>?)

 

ImmutableDictionary<T,U>(Int32 aCapacity, RemObjects.Elements.System.IEqualityComparer<T> aComparer)

 

Sub New(aCapacity As Int32, aComparer As RemObjects.Elements.System.IEqualityComparer<T>?)

Parameters:

  • aCapacity:
  • aComparer:

 

constructor(aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

ImmutableDictionary<T,U>(RemObjects.Elements.System.IEqualityComparer<T> aComparer)

Parameters:

  • aComparer:

constructor (not nullable ImmutableDictionary<T, U>)

 

constructor(aDictionary: not nullable ImmutableDictionary<T, U>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U>! aDictionary)

 

init(_ aDictionary: ImmutableDictionary<T, U>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U> aDictionary)

 

Sub New(aDictionary As ImmutableDictionary<T, U>)

Parameters:

  • aDictionary:

 

constructor(aDictionary: not nullable ImmutableDictionary<T, U>; aComparer: nullable RemObjects.Elements.System.IEqualityComparer<T>)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U>! aDictionary, RemObjects.Elements.System.IEqualityComparer<T>? aComparer)

 

ImmutableDictionary<T,U>(ImmutableDictionary<T, U> aDictionary, RemObjects.Elements.System.IEqualityComparer<T> aComparer)

Parameters:

  • aDictionary:
  • aComparer:

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)

 

Function ContainsKey(Key As T) As Boolean

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)

 

Function ContainsValue(Value As U) As Boolean

Parameters:

  • Value:

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

ForEach

 

method ForEach(Action: Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.System.KeyValuePair<T,U>> Action)

 

func ForEach(_ Action: Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.System.KeyValuePair<T,U>> Action)

 

Sub ForEach(Action As Action<RemObjects.Elements.System.KeyValuePair<T,U>>)

Parameters:

  • Action:

GetEnumerator  virtual

Iterator.


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()

 

Function GetHashCode() As Int32

GetSequence

Iterator.


GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

ToNSDictionary iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, watchOS, watchOS Simulator

Converts a dictionary to NSDictionary.

 

method ToNSDictionary: NSDictionary<T, U>

 

NSDictionary<T, U> ToNSDictionary()

 

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

 

NSDictionary<T, U> ToNSDictionary()

 

Function ToNSDictionary() As NSDictionary<T, U>

ToNSMutableDictionary iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, watchOS, watchOS Simulator

Converts a dictionary to NSMutableDictionary.

 

method ToNSMutableDictionary: NSMutableDictionary<T, U>

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

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

 

NSMutableDictionary<T, U> ToNSMutableDictionary()

 

Function ToNSMutableDictionary() As NSMutableDictionary<T, U>

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

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)

 

Function TryGetValue(aKey As T, <OutAttribute> ByRef aValue As U) As Boolean

Parameters:

  • aKey:
  • aValue:

 

Implements