Class CFDictionary
- Namespace
- CarinaStudio.MacOS.CoreFoundation
- Assembly
- CarinaStudio.AppBase.MacOS.dll
CFDictionary.
public class CFDictionary : CFObject, IShareableDisposable<CFObject>, IDisposable
- Inheritance
-
CFDictionary
- Implements
- Inherited Members
- Extension Methods
Properties
Count
Get number of key-value pairs in dictionary.
public int Count { get; }
Property Value
Methods
ContainsKey(CFObject)
Check whether given key is contained in dictionary or not.
public bool ContainsKey(CFObject key)
Parameters
keyCFObjectKey.
Returns
- bool
True if key is contained in dictionary.
ContainsValue(CFObject?)
Check whether given value is contained in dictionary or not.
public bool ContainsValue(CFObject? value)
Parameters
valueCFObjectValue which can be null.
Returns
- bool
True if value is contained in dictionary.
TryGetValue(CFString, out CFObject?)
Try getting value from dictionary.
public bool TryGetValue(CFString key, out CFObject? value)
Parameters
Returns
- bool
True if value got from dictionary successfully.