Skip to content

Desi banjara

  • Congratulations Messages for Newborn Baby Best Wishes Messages
  • What is ASP.NET Web API ? ASP.NET Web API
  • Celebrate every birthday as your 18th birthday; amazingly weird yet memorable. Birthday Wishes
  • “Sometimes our light goes out, but is blown again into instant flame by an encounter with another human being.”– Albert Schweitzer Motivational & Inspirational Quotes
  • It’s as simple as ABC, A birthday is more fun, If you share it with me! Birthday Wishes
  • 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
  • Microsoft AZ-220 Certification Exam Practice Questions – Part 5 Microsoft Exam AZ-220
  • Interview question: What is the difference between dynamic type variables and object type variables? C# development

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

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

  • Interview question: What is the difference between GetType() and typeof()? C# development
  • How to enable cors in WebApi to handle request from different subdomains? ASP.NET Web API
  • Interview question: In how many ways you can pass parameters to a method? C# development
  • Interview question: In c#, How can we create a function which can accept varying number of arguments? C# development
  • Interview questions – Microsoft Excel Interview questions
  • Interview questions – Microsoft Word Interview questions

Leave a Reply Cancel reply

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



Archives

  • 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
  • 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
  • Uncategorised
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

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



Recent Posts

  • PL-200: Microsoft Power Platform Functional Consultant Certification – Exam Practice Questions
  • SonarQube – Static code analysis
  • Microsoft PL-900 Certification Exam Practice Questions – 2
  • Microsoft AZ-204 Certification Exam Practice Questions – 1
  • AWS DevOps Engineer Professional Exam Practice Questions – 14

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • “Always remember you are braver than you believe, stronger than you seem, and smarter than you think.” Christopher Robin Motivational & Inspirational Quotes
  • How to take a screenshot on Google Pixels? Android phones
  • Happy birthday to someone who still yearns for Doraemon in present. Birthday Wishes
  • “The moment you doubt whether you can fly, you cease forever to be able to do it.” J.M. Barrie Motivational & Inspirational Quotes
  • How do I set aperture and shutter speed same time in Nikon D5200? Cameras
  • Happiness Quote – Dream as if you’ll live forever – James Dean Happiness Quote
  • Interview question: In how many ways you can pass parameters to a method? C# development
  • This birthday, let’s raise a toast to all things wise that you never did. Birthday Wishes

Copyright © 2022 Desi banjara.

Powered by PressBook News WordPress theme