NSObjectExtensions
Namespace: XPlat.Extensions
Defines a collection of extensions for NSObject objects.
Supported platforms
Platform
Version
Xamarin.iOS
1.0
Static Methods
ToObject(this NSObject)
Takes a base NSObject and, depending on it's actual type, will convert the iOS object to a .NET equivalent.
Example
This example shows how the ToObject method can be used to convert a stored value from the iOS NSUserDefaults to the .NET equivalent object.
Parameters
obj (NSObject)
The iOS object to convert to a .NET object.
Returns
Returns the converted .NET object value.
Last updated