The most useful advantage of using keyword is that is it calls the Dispose() method automatically to release the resources and also automatically implements the try catch blocks for you.Here it is called a using statement.So the advantage is that we don't have to explicitly write a try-catch block and our code looks small.
Popular Posts
-
In this article we will discuss about Arraylist, Hash table, Sorted list and Dictionary. Arraylist: - This is one type of Array whose size...
-
Due to security reason we can't upload file to server using HTTP, so best solution is to use FTP for the same. Below is the complete ...
-
When attempting to install SAP Crystal Reports for Visual Studio 2012 , the installation fails with the following message: Error 2753....
-
Start the visual studio and create a WPF application. Make a ViewModelBase class and inherite the InotifyPropertyChanged interface. ...
-
https://sandbox.google.com/checkout/sell/ https://www.secpay.com/java-bin/services/SECCardService?wsdl
-
window.onbeforeunload = function (evt) { var showmessage = 'Are you sure you want to leave?'; if (typeof evt == 'undef...
-
private Tuple<int, int> GetScreenResolution() { var contents = Application.Current.Host.Content; bool wasFullScreen = contents.IsFull...
-
Public Class clsCrypto Private bytIV() As Byte = {121, 241, 10, 1, 132, 74, 11, 39, 255, 91, 45, 78, 14, 211, 22, 62} Private Cons...
-
For load Random Images var arrName = new Array(2); arrName[0] = "http://abc.com/1.png" ; arrName[1] = " ...
-
Edit record from Gridview in ASP.Net using RowEditingg Event. protected void Gridview1 _RowEditing(object sender, GridViewEditEventArgs e)...
Wednesday, February 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment