Returns true if an aspect of a given type exists in the collection. Since most Aspects are supposed to only exist ONE instance of we created this method to easily be able to spot duplicates.

Namespace:  Gaia.WebWidgets
Assembly:  Gaia.WebWidgets (in Gaia.WebWidgets.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public bool Contains<T>()
where T : IAspect
Visual Basic (Declaration)
Public Function Contains(Of T As IAspect) As Boolean

Type Parameters

T
Type to search for

Return Value

true if list contains one instance of the given type

See Also