Re: IList
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Mon, 27 Mar 2006 18:52:08 +0300
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
- Follow-Ups:
- Re: IList
- From: Tom Costanza
- Re: IList
- Prev by Date: Re: ASP.NET 2.0 Crystal reports failing on server
- Next by Date: Re: string formatting
- Previous by thread: Re: Where can I download free VS.NET 2005 ?
- Next by thread: Re: IList
- Index(es):
Loading