Class DateTimeNSDateConverter
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Binding Type Converter for DateTime to NSDateTime.
public class DateTimeNSDateConverter : Object, IBindingTypeConverter, IEnableLogger
- Inheritance
-
DateTimeNSDateConverter
- Implements
- Extension Methods
Constructors
DateTimeNSDateConverter()
public DateTimeNSDateConverter()
Methods
GetAffinityForObjects(Type, Type)
Returns a positive integer when this class supports TryConvert for this particular Type. If the method isn't supported at all, return a non-positive integer. When multiple implementations return a positive value, the host will use the one which returns the highest value. When in doubt, return '2' or '0'.
public int GetAffinityForObjects(Type fromType, Type toType)
Parameters
Returns
- int
A positive integer if TryConvert is supported, zero or a negative value otherwise.
TryConvert(object?, Type, object?, out object?)
Convert a given object to the specified type.
public bool TryConvert(object? val, Type toType, object? conversionHint, out object? result)
Parameters
val
objecttoType
TypeThe type to coerce the object to.
conversionHint
objectAn implementation-defined value, usually to specify things like locale awareness.
result
objectAn object that is of the type
toType
.
Returns
- bool
True if conversion was successful.