DictionaryContainer.GetArray Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetArray<T>(NSString) |
Returns the nullable array of |
| GetArray<T>(NSString, Func<NativeHandle,T>) |
Returns the nullable array of |
GetArray<T>(NSString)
Returns the nullable array of T associated with the specified key.
protected T[]? GetArray<T>(Foundation.NSString key) where T : Foundation.NSObject;
member this.GetArray : Foundation.NSString -> 'T[] (requires 'T :> Foundation.NSObject)
Type Parameters
- T
Parameters
- key
- NSString
The identifier of the value to get.
Returns
The stored array of T value if present in the dictionary, null otherwise.
Applies to
GetArray<T>(NSString, Func<NativeHandle,T>)
Returns the nullable array of T associated with the specified key.
protected T[]? GetArray<T>(Foundation.NSString key, Func<ObjCRuntime.NativeHandle,T> creator);
member this.GetArray : Foundation.NSString * Func<ObjCRuntime.NativeHandle, 'T> -> 'T[]
Type Parameters
- T
Parameters
- key
- NSString
The identifier of the value to get.
- creator
- Func<NativeHandle,T>
A callback to convert between the native object stored in the dictionary to the desired return type.
Returns
The stored array of T value if present in the dictionary, null otherwise.