VB.NET and C# are so similar in expressive power and features that conversion between the two at first glance appears to be little more than adding or removing semicolons and curly braces. In fact, ...
The following code shows how nested loops do not increment properly cognitive complexity in VB. The equivalent code in C# computes the cognitive complexity properly.