• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

VB Equivalent to C# Optional Parameters

C# VB
public void TestOptional(int x = 0)
{
    ...
}
Public Sub TestOptional(Optional ByVal x As Integer = 0)
    ...
End Sub


Use Instant C# and Instant VB to convert between VB.NET and C#.     

Additional resource: VB.NET and C# Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.