AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter13/Listing13.15.ParameterlessStatementLambdas.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter13.Listing13_15
{
    using System;

    public class Program
    {
        public static void Main()
        {
            Func<string> getUserInput =
                () =>
                {
                    string input;
                    do
                    {
                        input = Console.ReadLine();
                    }
                    while(input.Trim().Length == 0);
                    return input;
                };
        }
    }
}