Click here to Skip to main content
15,860,972 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serialize class with multiple different schemas Pin
BillWoodruff26-Dec-17 5:25
professionalBillWoodruff26-Dec-17 5:25 
GeneralRe: Serialize class with multiple different schemas Pin
hpjchobbes27-Dec-17 3:20
hpjchobbes27-Dec-17 3:20 
GeneralRe: Serialize class with multiple different schemas Pin
Pete O'Hanlon27-Dec-17 4:05
subeditorPete O'Hanlon27-Dec-17 4:05 
AnswerRe: Serialize class with multiple different schemas Pin
jschell26-Dec-17 7:28
jschell26-Dec-17 7:28 
AnswerRe: Serialize class with multiple different schemas Pin
Gerry Schmitz26-Dec-17 12:49
mveGerry Schmitz26-Dec-17 12:49 
GeneralRe: Serialize class with multiple different schemas Pin
hpjchobbes27-Dec-17 3:26
hpjchobbes27-Dec-17 3:26 
GeneralRe: Serialize class with multiple different schemas Pin
Gerry Schmitz28-Dec-17 6:28
mveGerry Schmitz28-Dec-17 6:28 
QuestionType Casting from OleDb Value Types Returns Invalid Cast Exception Pin
User9874325-Dec-17 23:09
professionalUser9874325-Dec-17 23:09 
Can't seem to get past this. Everything I do is giving me an invalid cast exception.

I'm using GetOleDbSchemaTable ( OleDbSchemaGuid.Columns, ...) to return schema information on an Access table.

Columns that return value types are giving me problems. I'm not extremely experienced in C# so this is probably something basic.

The documentation says that the DATA_TYPE column in the resultset is a
UInt16
which I should be able to cast like this:
ushort DATA_TYPE = (ushort)row.Field<UInt16> ( "DATA_TYPE" );
but that gives me the same invalid cast exception. I can't even be sure that the cast that is causing the exception is ushort and UInt16 because I'm not understanding where to look.
AnswerRe: Type Casting from OleDb Value Types Returns Invalid Cast Exception Pin
Gerry Schmitz26-Dec-17 12:28
mveGerry Schmitz26-Dec-17 12:28 
GeneralRe: Type Casting from OleDb Value Types Returns Invalid Cast Exception Pin
User9874326-Dec-17 12:52
professionalUser9874326-Dec-17 12:52 
GeneralRe: Type Casting from OleDb Value Types Returns Invalid Cast Exception Pin
User9874326-Dec-17 13:02
professionalUser9874326-Dec-17 13:02 
QuestionAwait/Async Question Pin
Kevin Marois24-Dec-17 10:51
professionalKevin Marois24-Dec-17 10:51 
AnswerRe: Await/Async Question Pin
Dave Kreskowiak24-Dec-17 15:15
mveDave Kreskowiak24-Dec-17 15:15 
GeneralRe: Await/Async Question Pin
Kevin Marois24-Dec-17 15:22
professionalKevin Marois24-Dec-17 15:22 
QuestionGetting a list of Key pressed Pin
Kenneth Haugland22-Dec-17 9:52
mvaKenneth Haugland22-Dec-17 9:52 
AnswerRe: Getting a list of Key pressed Pin
Kenneth Haugland23-Dec-17 5:10
mvaKenneth Haugland23-Dec-17 5:10 
AnswerRe: Getting a list of Key pressed Pin
Gerry Schmitz23-Dec-17 5:58
mveGerry Schmitz23-Dec-17 5:58 
GeneralRe: Getting a list of Key pressed Pin
Kenneth Haugland23-Dec-17 10:14
mvaKenneth Haugland23-Dec-17 10:14 
GeneralRe: Getting a list of Key pressed Pin
Gerry Schmitz23-Dec-17 18:38
mveGerry Schmitz23-Dec-17 18:38 
SuggestionMessage Closed Pin
21-Dec-17 23:20
professionalmatthewproctor21-Dec-17 23:20 
GeneralRe: Looking for feedback for new .Net / C# error tracking and reporting tool Pin
OriginalGriff22-Dec-17 0:57
mveOriginalGriff22-Dec-17 0:57 
GeneralRe: Looking for feedback for new .Net / C# error tracking and reporting tool Pin
Eddy Vluggen22-Dec-17 4:08
professionalEddy Vluggen22-Dec-17 4:08 
QuestionPopulate graph from datagridview Pin
Member 1125947820-Dec-17 22:51
Member 1125947820-Dec-17 22:51 
GeneralRe: Populate graph from datagridview Pin
Ralf Meier21-Dec-17 2:50
professionalRalf Meier21-Dec-17 2:50 
GeneralRe: Populate graph from datagridview Pin
Member 1125947821-Dec-17 2:54
Member 1125947821-Dec-17 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.