Sponsored White Papers, Webcasts, and Downloads
TechRepublic Resources
- Return resources to the system to improve .NET performance
- I prefer the usingIn C#, I prefer the using keyword, like this:using(SqlConnection conn = new SqlConnectionconns){conn.Open;}The scope defines the object lifetime, regardless of how it exits the scope (exception, etc) the dispose for the object is automatically called and Close is handled by the Dispose.Nice little blog that talks about...
- Tags: developer, Data Access Application Block, resource, cleanup, csharp, rnshayes@..., programming, data access, Microsoft .NET, performance
- Discussion threads 2006-08-16
- << Previous
- page 1 of 1
- Next >>