Tuesday, August 6, 2013

Generic properties for non generic classes

are illegal

    class Test
    {
        public T  y<T> { get; set; }


    }

instead you need the following

    class Test <T>
    {
        public T  y { get; set; }

    }

No comments:

Post a Comment