NativeTypeProvider
A class responsible for managing and providing type converters for Native types. This class allows registering and retrieving type converters for specific types.
public class NativeTypeProvider
INativeType
A base class for implementing type converters for Native types. Subclasses must override toString and fromString to provide conversion logic.
open class INativeType<T>
- Type Parameter T: The type being converted.
Initializers
init()
Initializes a new instance of the type converter.
public init()
Methods
toString(_:)
Converts a value of type T to a string representation.
open func toString(_ input: T?) -> String
Parameters
- input: The value to convert.
Returns
A string representation of the value.
fromString(_:)
Converts a string representation back to a value of type T.
open func fromString(_ input: String?) -> T
Parameters
- input: The string to convert.
Returns
A value of type T.