Category Archives: VB

VB.NET developers – Please don’t name your properties the same as your classes

Today I was reminded that C# is a bit more strict in its naming conventions than VB.NET. After I converted an old project from VB.NET to C#, I spent a good part of the afternoon updating the names of properties … Continue reading

Posted in .NET, C#, VB | Leave a comment

VB.NET If(condition, truePart, falsePart) != C#’s ?:

The ternary If operator (http://msdn.microsoft.com/en-us/library/bb513985.aspx) was new in VB.NET 2.0 (VS2008). However, I don’t use it much, and I have counted on it being equal to the ?: operator in C#. Today I discovered an interesting difference. Continue reading

Posted in .NET, C#, VB | Leave a comment