bjarnef / Switcher

Switcher for Umbraco 7
http://our.umbraco.org/projects/backoffice-extensions/switcher
5 stars 4 forks source link

Create SwitcherValueConverter.cs #7

Closed skttl closed 6 years ago

skttl commented 6 years ago

Added it in App_Code, so I didn't mess up your setup too much.

Probably should be compiled to a dll though :)

bjarnef commented 6 years ago

I could add this, but I find it a bit overkill to add an additional assembly just to make it a strongly typed object, when you can use .ToString() == "1" on the object or use the core method TryConvertTo<bool>

I would prefer to discuss this issue since developers often add small custom property editors to enhance the UI or some other custom stuff and property value converters for these simple types already exists in core. http://issues.umbraco.org/issue/U4-10005