Class NSDictionary
- Namespace
- CarinaStudio.MacOS.AppKit
- Assembly
- CarinaStudio.AppBase.MacOS.dll
NSDictionary.
public class NSDictionary : NSObject, IDisposable, IEquatable<NSObject>
- Inheritance
-
NSDictionary
- Implements
- Inherited Members
- Extension Methods
Properties
AllKeys
A new array containing the dictionary’s keys, or an empty array if the dictionary has no entries.
public NSArray<NSObject> AllKeys { get; }
Property Value
AllObjects
A new array containing the dictionary’s values, or an empty array if the dictionary has no entries.
public NSArray<NSObject> AllObjects { get; }
Property Value
Count
The number of entries in the dictionary.
public int Count { get; }
Property Value
Methods
GetCFObject<T>(NSObject)
Returns the value associated with a given key.
public T? GetCFObject<T>(NSObject aKey) where T : CFObject
Parameters
aKeyNSObject
Returns
- T
Type Parameters
T
GetKeyEnumerator()
Provides an enumerator to access the keys in the dictionary.
public NSEnumerator GetKeyEnumerator()
Returns
GetObjectEnumerator()
Returns an enumerator object that lets you access each value in the dictionary.
public NSEnumerator GetObjectEnumerator()
Returns
GetObject<T>(NSObject)
Returns the value associated with a given key.
public T? GetObject<T>(NSObject aKey) where T : NSObject
Parameters
aKeyNSObject
Returns
- T
Type Parameters
T