jwaliszko / ExpressiveAnnotations

Annotation-based conditional validation library.
MIT License
351 stars 123 forks source link

Operator '+' cannot be applied to operands of type 'System.Byte' #145

Closed DavidMorg closed 7 years ago

DavidMorg commented 7 years ago

Since upgrading from version 2.7.3 to version 2.9.1, I'm now getting error: Operator '+' cannot be applied to operands of type 'System.Byte'.

Bye is a value between 0 and 255 and therefore should allow numerical operations.

By the way, love this plugin

jwaliszko commented 7 years ago

Thanks for reporting this - will be fixed in next release.

jwaliszko commented 7 years ago

Fix proposed here: https://github.com/jwaliszko/ExpressiveAnnotations/commit/75fb3f469ff5b2fe635bfdc2eeda038d741cff8c.