• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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 © 2004 – 2019 Tangible Software Solutions, Inc.