Re: binding to business object with property datatypes as enum

Re: binding to business object with property datatypes as enum

Old forum URL: forums.lhotka.net/forums/t/5512.aspx


Dave Boal posted on Thursday, October 02, 2008

Cline, Brilliant

I just wanted to let you know how I use your code.

EnumNVL<DateRangeType> enumNVL = EnumNVL<DateRangeType>.GetEnumNVL();

// The KEY POINT is that with your more general code, I can cast the type to int as follows:
int dbColumnValue = (int)enumNVL[0].Key;

// I could not do that cast with my code!

Copyright (c) Marimer LLC