Skip to content

Desi banjara

  • Microsoft AZ-900 Certification Exam Practice Questions – 5 Microsoft AZ-900 Certification Exam
  • “People don’t take trips, trips take people.” – John Steinbeck Quotes
  • 120 best family quotes Family Quotes
  • Happy birthday to my wonderful mother! Mom I just want to wish you a happy birthday I hope you enjoy your day even though you have to work but you are surrounded by good people so I know your day will be good. I love you and I just want you to know you are the best mother anyone could ever ask for. Thanks for always being there for me through good and bad, have a wonderful day because today is your day happy birthday my beautiful friend. Birthday Wishes For Mom
  • Interview question: What is Jagged Array in C#? C# development
  • With as much love, as I can share, I wanted to let you know I care. Sending lots of love your way, On your very special day! Happy Birthday, sweetheart! Birthday Wishes
  • “I travel a lot; I hate having my life disrupted by routine.” – Caskie Stinnett Quotes
  • Today is a very special day. It is your birthday. May the day bring you new surprises and may all your dreams be fulfilled. Wishing you a very happy birthday. Birthday Wishes

Interview question: What is the use of “using” keyword in C#?

Posted on July 29, 2018 By DesiBanjara No Comments on Interview question: What is the use of “using” keyword in C#?

In C#, we use “using” keyword for two different purpose.

  1. “Using” keyword is used to include a namespace in the program. A program generally has multiple using statements.
  2. The using statement is used to obtain a resource, execute a statement, and then dispose of that resource.

Example:

using (SqlConnection dbConn = new SqlConnection(conn)){

// Your code

} // automatically does the .Dispose call as if it was in a finally block

[amazon_link asins=’9351190900,007070368X,8120352068,9386873583,8120349172,1787287041,9351343189,B016Z18MLG,1788478924|1840787198,1484230175,0985580135,1491987650,B016Z18MLG,1119458684,1119428114,1491988533,1119449278′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’66554407-915d-11e8-9dd7-b3406be566d4′]

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

Post navigation

Previous Post: Interview question: What are the namespaces in C#.NET?
Next Post: Interview question: What is mean by operators in C#?

Related Posts

  • Differences between struct and classes in C# : Interview question C# development
  • Interview question: What are nullable types in C#? C# development
  • Interview question: What is the difference between dynamic type variables and object type variables? C# development
  • C# Interview questions – How to get one/two year back from current date C# development
  • Top 20 beginner level C# interview questions C# development
  • Interview question: How does C# differ from 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
  • “Next to trying and winning, the best thing is trying and failing.”– L.M. Montgomery Motivational & Inspirational Quotes
  • Happy birthday to my mom and thank you for everything you’ve done for me and my kids. I don’t know what I’d do without you. Thank you for teaching me to be respectful and caring adults. I couldn’t do it without you. Birthday Wishes For Mom
  • Azure Mobile Apps Azure Mobile Apps
  • AWS DevOps Engineer Professional Exam Practice Questions – 12 AWS DevOps Engineer Professional Exam
  • Interview question: What is mean by operators in C#? C# development
  • “Nobody can discover the world for somebody else. Only when we discover it for ourselves does it become common ground and a common bond and we cease to be alone.” – Wendell Berry Quotes
  • “If you don’t like something change it; if you can’t change it, change the way you think about it.”– Mary Engelbreit Motivational & Inspirational Quotes
  • Interview question: What are the two types of data type in C#? C# development

Copyright © 2023 Desi banjara.

Powered by PressBook News WordPress theme