Share via


DictionaryContainer.GetNSDataAsValueType<T>(NSString) Method

Definition

Returns an NSData with the contents of a value type of type T associated with key.

protected T? GetNSDataAsValueType<T>(Foundation.NSString key) where T : struct;
member this.GetNSDataAsValueType : Foundation.NSString -> Nullable<'T (requires 'T : struct)> (requires 'T : struct)

Type Parameters

T

The value type stored in the type NSData.

Parameters

key
NSString

The identifier of the value to get.

Returns

The value type initialized from the data in the NSData, or null if the specified key is not present in this dictionary.

Applies to