How can I find out the return data type of an Umbraco property editor?
For example, if I look at the documentation of the Checkbox list i can see this:
But I'm not sure how to use it? I have the datatype but how do I use the converter to find out the base type of the property?
How can I get the PublishedPropertyType? Maybe that is the key?
Get return type of property editor?
Hi!
How can I find out the return data type of an Umbraco property editor? For example, if I look at the documentation of the Checkbox list i can see this:
Alias: Umbraco.Checkboxlist Return type: IEnumerable
How can I check this with code?
Something like:
Is this possible?
/Kristoffer
Hi,
That type comes from the property value converter assosiated with the editor.
https://our.umbraco.com/documentation/extending/property-editors/value-converters
You can get the type from either the attribute or interface method as described here https://our.umbraco.com/documentation/extending/property-editors/value-converters#property-value-type
Thank you very much Sören!
But I'm not sure how to use it? I have the datatype but how do I use the converter to find out the base type of the property? How can I get the PublishedPropertyType? Maybe that is the key?
Thanks for your time!
/Kristoffer
is working on a reply...