AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter12/Listing12.28.ConstraintsCanOnlyBeSpecifiedForDefaultConstructors.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter12.Listing12_28
{
    public class Program
    {
        //public TValue New(TKey key)
        //{
        //    // Error: 'TValue': Cannot provide arguments 
        //    // when creating an instance of a variable type
        //    TValue newEntity = null;
        //    // newEntity = new TValue(key);
        //    Add(newEntity.Key, newEntity);
        //    return newEntity;
        //}
    }
}
