Minor cleanup

This commit is contained in:
Deukhoofd 2018-12-05 15:18:41 +01:00
parent 8034a11fe3
commit 587c8dfff3
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 0 additions and 3 deletions

View File

@ -71,11 +71,8 @@ namespace Upsilon.BoundTypes
for (var i=0; i < enumValues.Length; i++)
{
// Retrieve the value of the ith enum item.
var value = enumValues.GetValue(i);
// Convert the value to its underlying type (int, byte, long, ...)
var underlyingValue = Convert.ChangeType(value, enumUnderlyingType);
var name = value.ToString().ToLowerInvariant();
Properties.Add(name, new UserDataBoundProperty()
{