Re: how can I get the string representation of an enumeration??
- From: "Rob Windsor [MVP]" <rob.windsor.no.spam@xxxxxxxxx>
- Date: Fri, 13 May 2005 12:16:28 -0400
The following code will show System.Data.SqlDbType.Int:
SqlDbType t = SqlDbType.Int;
string s = t.GetType().ToString() + "." + t.ToString();
MessageBox.Show(s);
--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/
"Green" <someone@xxxxxxxxx> wrote in message
news:eVNr%2328VFHA.2572@xxxxxxxxxxxxxxxxxxxxxxx
> Hi, All
> I have an Enumeration SqlDbType.Int, I want to convert to
> "SqlDbType.Int". How to do this, thanks very much!
>
>
>
>
.
- References:
- Prev by Date: Re: Is this good use of Properties?
- Next by Date: Re: How to cast for GetOcx()
- Previous by thread: how can I get the string representation of an enumeration??
- Next by thread: Re: how can I get the string representation of an enumeration??
- Index(es):
Relevant Pages
|