Something getting lost in C# to VB.net conversion - C#