Click or drag to resize
GenericListWrapperT Class
A wrapper that accepts a generic IList and exposes the non-generic IList interface for it.
Inheritance Hierarchy
SystemObject
  VirtualRadar.Interface.PortableBindingGenericListWrapperT

Namespace: VirtualRadar.Interface.PortableBinding
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class GenericListWrapper<T> : IList, 
	ICollection, IEnumerable

Type Parameters

T

The GenericListWrapperT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
See interface docs.
Public propertyGenericList
Gets the list that is being wrapped.
Public propertyIsFixedSize
See interface docs.
Public propertyIsReadOnly
See interface docs.
Public propertyIsSynchronized
See interface docs.
Public propertyItem
See interface docs.
Public propertySyncRoot
See interface docs.
Top
Methods
  NameDescription
Public methodAdd
See interface docs.
Public methodClear
See interface docs.
Public methodContains
See interface docs.
Public methodCopyTo
See interface docs.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
See interface docs.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
See interface docs.
Public methodInsert
See interface docs.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
See interface docs.
Public methodRemoveAt
See interface docs.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasSameContentAs
Returns true if two ILists have the same content.
(Defined by IListExtensions.)
Top
Remarks
Using generics with WinForms controls is a PITA but using the non-generic version of IList outside of controls is not good. This is a simple-minded wrapper that takes the non-generic version of a list that the program uses and translates it into an IList that can be used with WinForms controls.
See Also