AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter18/Listing18.05.ReflectionWithGenerics.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_05
{
    using System;
    using System.Reflection;

    public class Program
    {
        public static void Main()
        {
            Type type;
            type = typeof(System.Nullable<>);
            Console.WriteLine(type.GetTypeInfo().ContainsGenericParameters);
            Console.WriteLine(type.GetTypeInfo().IsGenericType);

            type = typeof(System.Nullable<DateTime>);
            Console.WriteLine(type.GetTypeInfo().ContainsGenericParameters);
            Console.WriteLine(type.GetTypeInfo().IsGenericType);
        }
    }
}