A lightweight collection that contains exactly one single item.

Namespace: yWorks.Support
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2

Syntax

C#
public sealed class SingletonCollection<T> : SingleEnumerable<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable
where T : class
Visual Basic
Public NotInheritable Class SingletonCollection(Of T As Class) _
	Inherits SingleEnumerable(Of T) _
	Implements ICollection(Of T), IEnumerable(Of T),  _
	IEnumerable

Type Parameters

T
The type of the item and enumerable.

Inheritance Hierarchy

System..::..Object
  yWorks.Support..::..SingleEnumerable<(Of <(<'T>)>)>
    yWorks.Support..::..SingletonCollection<(Of <(<'T>)>)>

See Also