Hello to all,
I am recently started learning c# language. I have written following code:
I used above class as my container class. When I tried to add struct to the container, it works fine, but I unable to accept objects that implement IComparable. Can anyone tell me how to accept objects that implement IComparable?Code:class myContainer<T> : List<T>
Please help me.
Thank you.
Bookmarks