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

VB Equivalent to C# Lambdas

Expression Lambda

C# VB.NET
myVar = (string text) => text.Length; myVar = Function(text As String) text.Length

Block Lambda

C# VB.NET
myVar = (string text) =>
{
    return text.Length;
}
myVar = Function(text As String)
    Return text.Length
End Function


Use Instant VB to convert from C# to VB.NET.     

Additional resource: VB.NET and C# Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.