frazer <ic***@hotmail.com> wrote:
string
how do i cast?
You can't cast from a string to FormWindowState - although you could
use Enum.Parse to get a value.
I am actually storing this in a dataset
can i store it as a Form.WindowState ? in the dataset?
Yup.
or something generic like object. i tried anyType but it didnt work
You can put anything you like in a dataset. When you create the column,
put in the type that you're interested in - in this case,
typeof(FormWindowState).
Of course, you won't be able to put a FormWindowState into an actual
database directly - you'd need to convert to either an int
representation or a string representation.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too