Posts Tagged ‘using’

using – There’s more there than you are using

If you’ve spent more than a day programming in CSharp, you have already discovered the need for the using directive:

using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Net;
using System.IO;

But are you aware of the other ways you can use this directive? Read the rest of this entry »

Other Related Items:

Historic Print XL Men using hand-reapers in grain fieldHistoric Print XL Men using hand-reapers in grain fieldHistoric Print (XL): [Men using hand-reapers in grain field]This is a museum quality, reproduction print on premium paper with archival/UV resistant i... Read More >
Gun Control is Using Both Hands T-Shirt by The Mountain 100% Cotton Short Sleeve Shirt for AdultsGun Control is Using Both Hands T-Shirt by The Mountain 100% Cotton Short Sleeve Shirt for AdultsShirt says " GUN CONTROL: Using Both Hands. This high quality T-shirt is hand dyed and printed in the United States. This is not an iron-on decal that... Read More >

Dispose with Using

misc_vol3_087 I’m sure that many of you already know that many of the objects in the .NET framework need to be disposed.  The most common of these are the windows objects and the stream objects.

Of course the trick in using dispose is in calling it at the right time.  If your code throws an exception, you need to make sure that dispose still gets called on that object.

Read the rest of this entry »

Other Related Items:

Battery Recycling KitBattery Recycling KitDry Cell Battery Recycling Kit Each Dry Cell Battery Recycling Kit can hold about 4 lb of batteries and comes with a pre-paid return-shipping label. ... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor