Showing posts with label Generics. Show all posts
Showing posts with label Generics. Show all posts

Tuesday, June 23, 2015

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; }

    }