USING keyword give example and diff bwn using and using method

Posted by Rajesh081725 under C# on 11/9/2012 | Points: 10 | Views : 821 | Status : [Member] | Replies : 2
Can any one know

1)Why most of the coding are using a "USING " keywork
2)what is USING classes.
3)Can u give some example
4)Give some points
5)difference bertween using system.io and using (using (SqlConnection con = new SqlConnection(conString))
this is not exact difference i want a difference between using and using using some code types

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.



Responses

Posted by: Saratvaddilli on: 11/9/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
that is simple
using system.io : here we are using the name space , we can get access to all the methods and objects with in that name spce
using (using (SqlConnection con = new SqlConnection(conString)) : here we are connecting to the data base using sql connection .

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 11/16/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Check this link
http://www.mindfiresolutions.com/Two-ways-to-use-using-keyword-in-C-1160.php

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response