PC Review


Reply
Thread Tools Rate Thread

How to convert System.Type to Data.DbType?

 
 
Cepheus
Guest
Posts: n/a
 
      17th Mar 2004
Hi,

Is it possible to convert a System.Type to Data.DbType (this is
unfortunately an enumaeration)?

Thanks, Rainer.


 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      17th Mar 2004
With a switch statement everything is possible :-)

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Cepheus" <(E-Mail Removed)> wrote in message
news:4058119a$(E-Mail Removed)...
> Hi,
>
> Is it possible to convert a System.Type to Data.DbType (this is
> unfortunately an enumaeration)?
>
> Thanks, Rainer.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot convert type 'object[]' to 'System.Data.DataRow' Paulo Microsoft ASP .NET 2 27th May 2008 09:24 PM
How can I convert System.Type variables to some database data type? lichaoir Microsoft C# .NET 0 12th Mar 2008 04:35 AM
How to convert Type to DbType? jiangyh Microsoft C# .NET 2 11th Mar 2005 01:23 AM
Converting between DbType and System.Type James Moore Microsoft ADO .NET 0 19th Sep 2004 11:28 PM
convert a Type to DBType ?! franky Microsoft Dot NET Compact Framework 2 9th Apr 2004 07:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 AM.