anakic/Jot

Does DefaultValue Attribute implementation work?

Closed this issue · 3 comments

Are you sure the default value attribute implementation works?

Namely I put the default value attribute but this piece of logic doesn't read it:

DefaultValueAttribute defaultAtt = pi.CustomAttributes.OfType<DefaultValueAttribute>().SingleOrDefault();
if (defaultAtt != null)

@bcssov can confirm this is a bug. Fixed it and will push a new version today.

@bcssov new version (2.1.13) pushed to github and nuget. Can you confirm if it solves this bug for you?

Works fine, closing.