asp.net.ph

IList Interface

System.Collections Namespace


Represents a collection of objects that can be individually accessed by index.

IList Interface Members

Collapse   Properties

Visibility Name Value Type Accessibility
public IsFixedSize Boolean [ Get ]
public IsReadOnly Boolean [ Get ]
public Item ( Int32 index ) Object [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public Add ( Object value ) Int32
public Clear ( ) Void
public Contains ( Object value ) Boolean
public IndexOf ( Object value ) Int32
public Insert ( Int32 index , Object value ) Void
public Remove ( Object value ) Void
public RemoveAt ( Int32 index ) Void

Remarks

IList is a descendant of the ICollection interface and is the base interface of all lists.

IList implementations fall into three categories: read-only, fixed-size, variable-size.

  • A read-only IList cannot be modified.
  • A fixed-size IList does not allow the addition or removal of elements, but it allows the modification of existing elements.
  • A variable-size IList allows the addition, removal and modification of elements.

See Also

ICollection Interface   ArrayList Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph