Skip to content

Desi banjara

  • Microsoft AZ-900 Certification Exam Practice Questions – 5 Microsoft AZ-900 Certification Exam
  • Microsoft AZ-104 Certification Exam Practice Questions – 2 Microsoft AZ-104 Certification Exam
  • Birthdays are good for health, the more you celebrate them, the longer you live. Birthday Wishes
  • AWS DevOps Engineer Professional Exam Practice Questions – 6 AWS DevOps Engineer Professional Exam
  • AWS DevOps Engineer Professional Exam Practice Questions – 8 AWS DevOps Engineer Professional Exam
  • “The moment you doubt whether you can fly, you cease forever to be able to do it.” J.M. Barrie Motivational & Inspirational Quotes
  • Wishing the day is as amazing as you are. A very Happy Birthday buddy. Birthday Wishes
  • “Two roads diverged in a wood and I – I took the one less traveled by.” – Robert Frost Quotes

Interview question: What is the purpose of “as” operator in C#?

Posted on July 31, 2018 By DesiBanjara No Comments on Interview question: What is the purpose of “as” operator in C#?

“as” operator casts without raising an exception if the cast fails.

Example:

Object message = new StringReader (“desibanjara”);

StringReader newMessage = message as StringReader;

 

[amazon_link asins=’B019MQLUZG,B079R1JS6K,B079R17XY2,B019MQONW8,B076H5S8S6,B077L4X3PN,B07B6DM75J,B01N3BN5E8,B07B4RZNG2|B00UNEHS44,B01CQOL3F8,B00T7YNWH8,B00T7YOXQC,B01N6BBAK9,B01HE5NDHA,B00SX8GSGG,B01AWLBCIK,B01N0AKAYE’ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’287ddac1-9493-11e8-a97d-331c2e92ac11′]

C# development, Interview questions, IT/Software development Tags:C# development, Interview questions, IT/Software development

Post navigation

Previous Post: Interview question: What is the purpose of “is” operator in C#?
Next Post: Interview question: What is encapsulation?

Related Posts

  • SOLID Design Principles C# development
  • Interview question: Which class act as a base class for all the data types in .net? C# development
  • Interview question: What is the difference between ref and out parameters? C# development
  • Interview question: What is Jagged Array in C#? C# development
  • Interview question: Which class acts as a base class for all arrays in C#? C# development
  • Interview question: What is the use of “using” keyword in C#? C# development

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *



Archives

  • February 2023
  • February 2022
  • June 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • December 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • August 2015
  • May 2015
  • April 2014
  • November 2013

Categories

  • Acer
  • Amazon AWS Certification Exam
  • Amazon Kindle
  • Android phones
  • ASP.Net MVC
  • ASP.NET Web API
  • AWS DevOps Engineer Professional Exam
  • AZ-300: Microsoft Azure Architect Technologies Exam
  • Azure Active Directory
  • Azure App Services
  • Azure Data Factory
  • Azure Logic Apps
  • Azure Mobile Apps
  • Azure Virtual Machine
  • Best Wishes Messages
  • birthday messages for boyfriend
  • Birthday messages For Girlfriend
  • Birthday Wishes
  • Birthday Wishes For Mom
  • Business
  • C# development
  • Cameras
  • Canon
  • Cloud
  • Cloud services
  • digital-cameras
  • Diwali
  • Entrepreneurship
  • eReaders
  • Family Quotes
  • Family Quotes
  • Friendship Quotes
  • Gadgets
  • Games
  • Get Well Soon Messages
  • GIT
  • Good Morning Wishes
  • Google
  • Gratitude Quote
  • Guru Nanak Jayanti
  • Halloween
  • Happiness Quote
  • Happy Diwali Wishes
  • Happy Independence Day Wishes
  • Happy New Year Wishes
  • HTC
  • HTC One
  • HTML
  • I Miss You Messages
  • Inspirational Quotes
  • Inspirational Travel Quotes
  • Interview questions
  • IT/Software development
  • Leadership Quote
  • Life lessons
  • Love Quotes
  • Love shayari
  • Messages
  • Microsoft AI-900 Certification Exam
  • Microsoft AZ-104 Certification Exam
  • Microsoft AZ-204 Certification Exam
  • Microsoft AZ-900 Certification Exam
  • Microsoft Azure
  • Microsoft Azure certifications
  • Microsoft Exam AZ-220
  • Microsoft Excel
  • Microsoft Office
  • Microsoft word
  • Mobile phones
  • Motivational & Inspirational Quotes
  • Nature Quotes
  • Nexus
  • Nikon
  • Pixels
  • PL-200: Microsoft Power Platform Functional Consultant Certification
  • PL-900: Microsoft Power Platform Fundamentals
  • postman
  • Quotes
  • Robin Sharma
  • Samsung Galaxy S5
  • Self improvement quotes
  • Self-Confidence Quote
  • SonarQube
  • Sony PlayStation 4
  • SQL
  • SQL Server
  • Success Quotes
  • Travel Quotes
  • Uncategorized
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org



Recent Posts

  • Azure Data Factory
  • What is Azure Active Directory?
  • Azure Virtual Machine
  • Azure Logic Apps
  • Azure Mobile Apps

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • “Fall seven times, stand up eight.”– Japanese Proverb Motivational & Inspirational Quotes
  • “The bravest sight in the world is to see a great man struggling against adversity.”– Seneca Motivational & Inspirational Quotes
  • Thank you for being strong enough to say no when you know it won’t be good for me at all. Thanks for being soft enough to always say yes whenever you realize it is for my own good. I love you Mom! Birthday Wishes For Mom
  • Microsoft AZ-220 Certification Exam Practice Questions – Part 5 Microsoft Exam AZ-220
  • Wishing you a year of amazing moments and reasons to smile. Birthday Wishes
  • How to change font size on Amazon Kindle ? Amazon Kindle
  • Asp.Net WebApi Interview Questions – Cont. ASP.NET Web API
  • Gratitude Quote – This is a wonderful day Gratitude Quote

Copyright © 2023 Desi banjara.

Powered by PressBook News WordPress theme