static void Main(string[] args) { Section section = Section.LambdaExpressions; Console.WriteLine(); switch (section) { case Section.Basics: { Basics.BasicLINQSyntax(); } break; case Section.MethodSyntax: { Basics.MethodLINQSyntax(); } break; case Section.LambdaExpressions: { LambdaExpressions.LambdaTests(); } break; } Console.ReadLine(); }
static void Main() { switch (InterfaceFunctions.ChooseSection <LINQSections>()) { case LINQSections.Basics: { Basics.BasicLINQSyntax(); } break; case LINQSections.MethodSyntax: { Methods.MethodLINQSyntax(); } break; case LINQSections.LambdaExpressions: { LambdaExpressions.LambdaTests(); } break; } Console.ReadLine(); }