Browse by Tags

Sorry, but there are no more tags available to filter with.
How to keep a local variable in scope across a try and catch block?
12 August 04 06:33 PM
The following code won't work, because conn goes out of scope before you enter the catch block. try { Connection conn = new Connection(); conn.Open(); } catch { if (conn != null ) conn.Close(); } The fix is simple - just declare conn before entering the Read More...
Why doesn't C# have VB.NET's 'with' operator?
11 March 04 02:02 AM
Many people, including the C# language designers, believe that 'with' often harms readability, and is more of a curse than a blessing. It is clearer to declare a local variable with a meaningful name, and use that variable to perform multiple operations Read More...
What are the advantages of C# over VB.NET and vice versa?
11 March 04 01:59 AM
The choice between C# and VB.NET is largely one of subjective preference. Some people like C#'s terse syntax, others like VB.NET's natural language, case-insensitive approach. Both have access to the same framework libraries. Both will perform largely Read More...

This Blog

Syndication

Page view tracker