Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of 'as' Keyword in C# ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

985


How to assign Null value to Var?

1048


How do you inherit a class into other class in c#?

978


Why can't we use a static class instead of singleton?

943


Which namespaces are necessary to create a localized application?

1125


What is an abstract class c#?

952