L
Laoballer
If I want to create a class that inherits Collection in C# 2.0 do I
need to implement all the methods in Collections?
need to implement all the methods in Collections?
If I want to create a class that inherits Collection in C# 2.0 do I
need to implement all the methods in Collections?
Laoballer said:If I want to create a class that inherits Collection in C# 2.0 do I
need to implement all the methods in Collections?
That all depends on what "Collection" class you are talking about. When
inheriting a class, the only methods you _have_ to implement are the
abstract methods.
Ask a less vague question, and you'll get a less vague answer.![]()
Laoballer said:So what I'm trying to do is utilize a node class and an nodelist class
that is from an example on msdn located here.
http://msdn.microsoft.com/en-us/library/ms379572(VS.80).aspx
When I compile my code with a single declaration of a node object in
main I get the following error
The type or namespace name 'Collection' could not be found(are you
missing a using directive or an assembly reference?)
I'm using VS2005. So it looks like it's giving me an error because
Collection doesn't exist. If I change collection to ICollection it
gives me 9 errors that states that I haven't implemented
count,IsReadOnly, CopyTo, etc... in
Systems.Collections.Generic.ICollection