Minor cleanup
This commit is contained in:
parent
8034a11fe3
commit
587c8dfff3
|
@ -71,11 +71,8 @@ namespace Upsilon.BoundTypes
|
||||||
|
|
||||||
for (var i=0; i < enumValues.Length; i++)
|
for (var i=0; i < enumValues.Length; i++)
|
||||||
{
|
{
|
||||||
// Retrieve the value of the ith enum item.
|
|
||||||
var value = enumValues.GetValue(i);
|
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();
|
var name = value.ToString().ToLowerInvariant();
|
||||||
Properties.Add(name, new UserDataBoundProperty()
|
Properties.Add(name, new UserDataBoundProperty()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue