r3c / cottle

Fast, light & extensible template engine for C#

Home Page:https://r3c.github.io/cottle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReflectionValue and decimal

mcdee opened this issue · comments

I have objects that I am exposing to Cottle scripts using ReflectionValue. It all seems to work well, except that I cannot obtain decimal values. From looking at the code it appears that ReflectionValue does not support decimal. Is it possible to add decimal to the list of supported types?

Hello @mcdee , you're right decimal type and a few others were missing. I just fixed that in version 1.3.2.2, you'll find it on nuget in a few minutes :) (or you can just build from current master)