Thread: Can't get my class to inheret Collection<T>

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Can't get my class to inheret Collection<T>

    I'm trying to do some examples with custom collections and the examples on the site I'm doing has a class inheret Collecton<T> but I get the error

    The type or namespace name 'Collection' could not be found (are you missing a using directive or an assembly reference?)
    I'm already using System.Collections & System.Collections.Generic. What's going on. I also tried CollectionBase but it can't be inhereted.

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Oh, that's one of those that's in System.ObjectModel.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Yeah, I found it out after a bit of research. I contacted the article creator though.

    http://msdn2.microsoft.com/en-us/lib...72(vs.80).aspx

    to the said article.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Class design problem
    By h3ro in forum C++ Programming
    Replies: 10
    Last Post: 12-19-2008, 09:10 AM
  2. Specializing class
    By Elysia in forum C++ Programming
    Replies: 6
    Last Post: 09-28-2008, 04:30 AM
  3. Defining derivated class problem
    By mikahell in forum C++ Programming
    Replies: 9
    Last Post: 08-22-2007, 02:46 PM
  4. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM