Cascade
Loading...
Searching...
No Matches
Buzzware.Cascade.IPropertyConverter Interface Reference

Interface that defines a converter to convert a property value from one type to another. More...

Public Member Functions

Task< object?> Convert (object? input, Type destinationType, params object[] args)
 Converts an input object to a specified destination type using additional optional arguments.

Detailed Description

Interface that defines a converter to convert a property value from one type to another.

https://buzzware.github.io/cascade/api_reference/md_api__docs_2using__cascade_2associations_2associations.html

Member Function Documentation

◆ Convert()

Task< object?> Buzzware.Cascade.IPropertyConverter.Convert ( object? input,
Type destinationType,
params object[] args )

Converts an input object to a specified destination type using additional optional arguments.

Parameters
inputThe object to be converted.
destinationTypeThe type to which the object should be converted.
argsOptional arguments that might be needed for conversion.
Returns
The converted object or null if conversion is not possible.

The documentation for this interface was generated from the following file:
  • Buzzware.Cascade/attributes/FromPropertyAttribute.cs