diff --git a/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs b/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs index cdae7b8..6cad4dc 100644 --- a/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs +++ b/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs @@ -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() {