I have some code like this: If key.Equals("search", StringComparison.OrdinalIgnoreCase) Then DoSomething(
Is there a VB.NET equivalent for C#'s ?? operator?
Should you set all the objects to null (Nothing in VB.NET) once you have finished with them? I understand th
In Visual Studio, when you right-click a method call, you go to the implementation of that method inside a cla
Question: I want to define a global exception handler for unhandled exceptions in my console application. In a
I have the following code: Using cmd As SqlCommand = Connection.CreateCommand cmd.CommandText = "UPDATE s
I've got a legacy app just starting to misbehave, for whatever reason I'm not sure. It generates a
In VB.NET, what is the difference between And and AndAlso? Which should I use?
How do I get my C# program to sleep for 50 milliseconds? This might seem an easy question, but I'm havin
How do I get a human-readable file size in bytes abbreviation using .NET? Example: Take input 7,326,629 and d
So I am learning MSIL right now to learn to debug my C# .NET applications. I've always wondered: what is
When a compile fails in VB.NET in Visual Studio 2008, an Error List pops up at the bottom of the screen. To ju
I like instantiating my WCF service clients within a using block as it's pretty much the standard way to
Inspired by another question asking about the missing Zip function: Why is there no ForEach extension method o
In Perl (and other languages) a conditional ternary operator can be expressed like this: my $foo = $bar == $b
If I am given a MemoryStream that I know has been populated with a String, how do I get a String back out?