Browsed by
Month: March 2017

VB.NET to C# – 04
Making decisions

VB.NET to C# – 04
Making decisions

Making decisions is one of the most used tasks when writing business logic. In Visual Basic .NET you use in most cases an If .. Then .. Else statement or a Select Case statement. In C# there is no big difference, beside the fact that the naming of the keywords is a bit deviant.

Visual Studio 2017
Use ValueTuples in Visual Basic .NET

Visual Studio 2017
Use ValueTuples in Visual Basic .NET

Tuples are primitive types where you can easily combine multiple values to one variable. They are as a datatype not completely new for C# 7.0 or Visual Basic 15, but the way you can use them are, with the new System.ValueTuple type, is much improved. In this post I will show you how you can take advantage of the streamed syntax of value tuples.