Re: IList



Hello, Tom!

TC> I have a collection class that inherits from CollectionBase. I want to
TC> override the Contains method for the List property. I'm not sure how
TC> to do that. Can anyone assist?

Implement IList interface in your derived class

public interface I1

{

bool Contains();

}

public class B1 : I1

{

#region I1 Members

bool I1.Contains()

{

return false;

}

#endregion

}

public class C1 : B1, I1

{

bool I1.Contains()

{

return true;

}

}


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Loading