GoTo to label '<labelname>' cannot be used within lambda expressions

The body of a lambda expression must be an expression that calculates and returns a single value. No statements are permitted, including GoTo statements.

Error ID: BC36597

See Also

Concepts

Lambda Expressions

Reference

GoTo Statement