Is and as in c#?
Answer / Ziyaul Rehman
The 'is' keyword is used for type checking at runtime. It returns true if the object belongs to a specified type or its subclass. The 'as' keyword attempts to cast an object to a specific type, and if successful it assigns the result to the variable on the right side of the as keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
Practcle scenario where I can use abstract class and where I can use Interface
1 Answers Jeevan Technologies,
In a stored procedure 4 select stmts there.If error comes in one select stmt will remaining normally executes?
What are strong name assemblies?
Can hashtable have duplicate keys in c#?
Is array thread safe c#?
Please explain the basic string operations used in c#?
What is type casting. Explain it with reference to classes.
2 Answers HCL, JPMorgan Chase,
What is the name of the implicit input parameter of a set accessor for any property?
What is value type and reference type?
How do we achieve encapsulation in c#?
Why do we need constructor in c#?
What does the keyword “virtual†declare for a method or property?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)