Click here to Skip to main content
14,547,127 members
   

C#

 
QuestionGet DataGridView ComboBox Column value?? Pin
jasper0188-Jun-09 15:07
Memberjasper0188-Jun-09 15:07 
AnswerRe: Get DataGridView ComboBox Column value?? Pin
jayveebishie23-Oct-10 4:46
Memberjayveebishie23-Oct-10 4:46 
QuestionSet an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 14:44
MemberJasmine Pomelo8-Jun-09 14:44 
GeneralRe: Set an arrays items to new strings Pin
jasper0188-Jun-09 15:16
Memberjasper0188-Jun-09 15:16 
GeneralRe: Set an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 15:31
MemberJasmine Pomelo8-Jun-09 15:31 
Question'is' operator Pin
Member 10339078-Jun-09 11:27
MemberMember 10339078-Jun-09 11:27 
AnswerRe: 'is' operator Pin
Christian Graus8-Jun-09 11:33
mveChristian Graus8-Jun-09 11:33 
GeneralRe: 'is' operator Pin
Member 10339078-Jun-09 11:40
MemberMember 10339078-Jun-09 11:40 
Thanks for your reply.

Christian Graus wrote:
This should not compile.


I compiles fine, 'is' works with structures as well. And besides - 'x' in the previous example is of type 'object', so the compiler has no way of knowing it is going to contain an integer.

Christian Graus wrote:
You could try calling ToString on the object and then decimal.TryParse, that should work for things like int.


String parsing seems to me like the slowest possible approach. I guess I'll go with the try/catch, which is guaranteed to work, unless someone comes with something faster.
GeneralRe: 'is' operator Pin
Christian Graus8-Jun-09 11:57
mveChristian Graus8-Jun-09 11:57 
GeneralRe: 'is' operator Pin
Christian Graus8-Jun-09 12:05
mveChristian Graus8-Jun-09 12:05 
AnswerRe: 'is' operator Pin
Colin Angus Mackay8-Jun-09 12:54
MemberColin Angus Mackay8-Jun-09 12:54 
AnswerRe: 'is' operator Pin
PIEBALDconsult8-Jun-09 13:13
professionalPIEBALDconsult8-Jun-09 13:13 
QuestionKilling a process Pin
CodingYoshi8-Jun-09 9:27
MemberCodingYoshi8-Jun-09 9:27 
AnswerRe: Killing a process Pin
Luc Pattyn8-Jun-09 9:35
sitebuilderLuc Pattyn8-Jun-09 9:35 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 9:38
MemberEliottA8-Jun-09 9:38 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 9:54
MemberCodingYoshi8-Jun-09 9:54 
AnswerRe: Killing a process Pin
EliottA8-Jun-09 9:36
MemberEliottA8-Jun-09 9:36 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 9:53
MemberCodingYoshi8-Jun-09 9:53 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 9:56
MemberEliottA8-Jun-09 9:56 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:00
MemberCodingYoshi8-Jun-09 10:00 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:01
MemberEliottA8-Jun-09 10:01 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:05
MemberCodingYoshi8-Jun-09 10:05 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:07
MemberEliottA8-Jun-09 10:07 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:19
MemberCodingYoshi8-Jun-09 10:19 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:26
MemberEliottA8-Jun-09 10:26 

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.