What is the use of 'as' Keyword in C# ?
Answer / Sunil Saini
The 'as' keyword in C# is used for type cast operation with a safety check. It provides a null-safe way to convert one object into another by allowing you to catch runtime exceptions at compile time.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is console readkey in vb net?
Can a static class contain non static members?
What is Lambda Expression?
What are the types of inheritance in c#?
What is the difference between a variable and a literal?
How we convert private assembly into public assembly?
Hi!!! my question is how we can apply or do Themes in C#.NET? please any sample or website from where i can get the answer.
What is gridview c#?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
What?s a delegate?
Which type of variables are under the control of garbage collector?
What is list collection in c#?
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)