Directcast(123.34,integer) - should it throw an error? Why
or why not?



Directcast(123.34,integer) - should it throw an error? Why or why not?..

Answer / narayan sahu(netx)

Yes, because the specified type and the runtime type is not
same

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

0 Answers  


DateTime[] dt = new DateTime[10] for(i=0; i<10; i++) { dt[i] = DateTime(2008, 1, i+1) } How many heap object will be created for the above array. Choose the correct answer below. Ans: 1, 10, 11, 12

3 Answers  


What is .NET Framework?

2 Answers  


Can a try block have more than one catch block?

0 Answers  


How do you create threading in .NET? What is the namespace for that?

2 Answers  






What is the lapsed listener problem?

0 Answers  


What is the difference between asp.net and asp?

0 Answers  


What is the difference between the C#.NET and VB.NET?

6 Answers   MCN Solutions,


Explain role-based security in .Net.

2 Answers  


What is the standard you use to wrap up a call to a Web service

2 Answers   Siebel Systems,


What is Method Overriding? How to override a function in C#?

1 Answers  


What is Ajax? How it is related to your project?

0 Answers   Wipro,


Categories