Click here to Skip to main content
15,884,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: recursive folder compare Pin
vantoora27-Jan-10 19:00
vantoora27-Jan-10 19:00 
GeneralRe: recursive folder compare Pin
vantoora29-Jan-10 2:16
vantoora29-Jan-10 2:16 
QuestionRendering issue C# Pin
Paul Harsent26-Jan-10 23:28
Paul Harsent26-Jan-10 23:28 
AnswerRe: Rendering issue C# Pin
tolw27-Jan-10 19:30
tolw27-Jan-10 19:30 
QuestionExplicit casting with Type variable Pin
Kaikus26-Jan-10 23:21
Kaikus26-Jan-10 23:21 
AnswerRe: Explicit casting with Type variable Pin
OriginalGriff26-Jan-10 23:45
mveOriginalGriff26-Jan-10 23:45 
GeneralRe: Explicit casting with Type variable Pin
Kaikus27-Jan-10 0:48
Kaikus27-Jan-10 0:48 
GeneralRe: Explicit casting with Type variable Pin
OriginalGriff27-Jan-10 1:16
mveOriginalGriff27-Jan-10 1:16 
I know "as" doesn't work - that's why I said 'If (for example) "as" worked that way' rather than 'Use "as" - it will do what you want'

I can't help thinking you are overdoing this a little, but...
Do you really need to know what the datatype is? Since your are returning only the row number rather than the value, either compare it directly
myDataSet.myTable[row][ColName] == value
or use ToString and compare that way.
myDataSet.myTable[row][ColName].ToString() == value.ToString()
Otherwise you have to be sure that all the objects you may pass the routine implement the == operator...

I would still think about why I was doing this in this (rather odd) way in the first place.

All those who believe in psycho kinesis, raise my hand.

My Badger | [badger,badger,badger,badger...] 's gonna unleash hell on your ass. Badger | [badger,badger,badger,badger...] tastic!

GeneralRe: Explicit casting with Type variable Pin
Kaikus27-Jan-10 22:21
Kaikus27-Jan-10 22:21 
GeneralRe: Explicit casting with Type variable Pin
Gideon Engelberth27-Jan-10 4:40
Gideon Engelberth27-Jan-10 4:40 
GeneralRe: Explicit casting with Type variable Pin
Kaikus27-Jan-10 22:26
Kaikus27-Jan-10 22:26 
GeneralRe: Explicit casting with Type variable Pin
Gideon Engelberth28-Jan-10 2:47
Gideon Engelberth28-Jan-10 2:47 
AnswerRe: Explicit casting with Type variable Pin
PIEBALDconsult27-Jan-10 5:33
mvePIEBALDconsult27-Jan-10 5:33 
QuestionExecute smtpclient authenticate method from reflection? Pin
ankit_verma26-Jan-10 23:14
ankit_verma26-Jan-10 23:14 
AnswerRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens26-Jan-10 23:45
SeMartens26-Jan-10 23:45 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma26-Jan-10 23:48
ankit_verma26-Jan-10 23:48 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens26-Jan-10 23:53
SeMartens26-Jan-10 23:53 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:10
ankit_verma27-Jan-10 0:10 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens27-Jan-10 0:17
SeMartens27-Jan-10 0:17 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:23
ankit_verma27-Jan-10 0:23 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens27-Jan-10 0:31
SeMartens27-Jan-10 0:31 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:40
ankit_verma27-Jan-10 0:40 
Questioniterating listview Pin
Member 59031026-Jan-10 22:37
Member 59031026-Jan-10 22:37 
AnswerRe: iterating listview Pin
sanforjackass26-Jan-10 22:47
sanforjackass26-Jan-10 22:47 
AnswerRe: iterating listview Pin
Rob Philpott26-Jan-10 22:54
Rob Philpott26-Jan-10 22: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.