Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error of "failed to import the activex control. please ensure it is properly registered" Pin
brandonwong1239-Jun-09 6:24
brandonwong1239-Jun-09 6:24 
QuestionGet DataGridView ComboBox Column value?? Pin
jasper0188-Jun-09 15:07
jasper0188-Jun-09 15:07 
AnswerRe: Get DataGridView ComboBox Column value?? Pin
jayveebishie23-Oct-10 4:46
jayveebishie23-Oct-10 4:46 
QuestionSet an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 14:44
Jasmine Pomelo8-Jun-09 14:44 
GeneralRe: Set an arrays items to new strings Pin
jasper0188-Jun-09 15:16
jasper0188-Jun-09 15:16 
GeneralRe: Set an arrays items to new strings Pin
Jasmine Pomelo8-Jun-09 15:31
Jasmine Pomelo8-Jun-09 15:31 
Question'is' operator Pin
Member 10339078-Jun-09 11:27
Member 10339078-Jun-09 11:27 
AnswerRe: 'is' operator Pin
Christian Graus8-Jun-09 11:33
protectorChristian Graus8-Jun-09 11:33 
These are integral types, is only works for classes. This should not compile. The is operator WILL work with a class structure.

class Base
class Derived1 : Base

Derived1 n;

if ( n is Base )
{
// this will work
}

Member 1033907 wrote:
what is the fastest (in runtime) way to check, if a variable (of type 'object', in general) can be cast to decimal?


I suspect you need your try/catch block. You also have the cost of boxing to contend with. You could try calling ToString on the object and then decimal.TryParse, that should work for things like int.

Christian Graus

Driven to the arms of OSX by Vista.

"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

GeneralRe: 'is' operator Pin
Member 10339078-Jun-09 11:40
Member 10339078-Jun-09 11:40 
GeneralRe: 'is' operator Pin
Christian Graus8-Jun-09 11:57
protectorChristian Graus8-Jun-09 11:57 
GeneralRe: 'is' operator Pin
Christian Graus8-Jun-09 12:05
protectorChristian Graus8-Jun-09 12:05 
AnswerRe: 'is' operator Pin
Colin Angus Mackay8-Jun-09 12:54
Colin Angus Mackay8-Jun-09 12:54 
AnswerRe: 'is' operator Pin
PIEBALDconsult8-Jun-09 13:13
mvePIEBALDconsult8-Jun-09 13:13 
QuestionKilling a process Pin
CodingYoshi8-Jun-09 9:27
CodingYoshi8-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
EliottA8-Jun-09 9:38 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 9:54
CodingYoshi8-Jun-09 9:54 
AnswerRe: Killing a process Pin
EliottA8-Jun-09 9:36
EliottA8-Jun-09 9:36 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 9:53
CodingYoshi8-Jun-09 9:53 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 9:56
EliottA8-Jun-09 9:56 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:00
CodingYoshi8-Jun-09 10:00 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:01
EliottA8-Jun-09 10:01 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:05
CodingYoshi8-Jun-09 10:05 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:07
EliottA8-Jun-09 10:07 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:19
CodingYoshi8-Jun-09 10:19 

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.