What is difference between "as" and "is" keyword?



What is difference between "as" and "is" keyword?..

Answer / mohit

as operator use for casting
where is operator is use for comparision.

Is This Answer Correct ?    9 Yes 3 No

Post New Answer

More C Sharp Interview Questions

Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?

2 Answers   Cognizant, W3 Solutions, Zefer,


What is difference between for and foreach in c#?

0 Answers  


how to return morethan one value using out parameter in c#.net ; For Example : public int show(out int []a) { int []a={1,2,3,4,5}; return a[]; } we have to print all the values without using the Console.WriteLine statement;

1 Answers   Verizon,


What is an object and a class?

0 Answers  


Can main method be final?

0 Answers  






if a method is marked as protected internal who can access it?

0 Answers   Siebel Systems,


How do I register my code for use by classic com clients?

0 Answers  


What do you mean by jagged array?

0 Answers  


In c# how to connect crystal report?

2 Answers  


How do I create a multilanguage, single-file assembly?

0 Answers  


Which collection will you use to store different types of objects collection like... int, employee, student, object etc.

5 Answers   R Systems,


Is null == null c#?

0 Answers  


Categories