DocFX + Singulink = ♥

Class SlidingBufferMatchCollection<T>

An ICollection holding unique SlidingBufferMatch objects. The backing collection is thread-safe and deduplicated.

Inheritance
Object
SlidingBufferMatchCollection<T>
Implements
IReadOnlyCollection<T>
Namespace: StreamRegex.Extensions
Assembly: StreamRegex.Extensions.dll
Syntax
public class SlidingBufferMatchCollection<T> : ICollection<T> where T : SlidingBufferMatch
Type Parameters
Name Description
T

The type must inherit from SlidingBufferMatch

Constructors

| Improve this Doc View Source

SlidingBufferMatchCollection()

Default constructor

Declaration
public SlidingBufferMatchCollection()

Properties

| Improve this Doc View Source

Count

The number of Matches in the collection

Declaration
public int Count { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsSynchronized

This collection is thread-safe.

Declaration
public bool IsSynchronized { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

SyncRoot

Not supported.

Declaration
public object SyncRoot { get; }
Property Value
Type Description
Object

Methods

| Improve this Doc View Source

Add(T)

Add a SlidingBufferMatch to the collection. If the same match has already been added no-op.

Declaration
public void Add(T item)
Parameters
Type Name Description
T item

The match to add.

| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(T)

Declaration
public bool Contains(T item)
Parameters
Type Name Description
T item
Returns
Type Description
Boolean
| Improve this Doc View Source

CopyTo(T[], Int32)

Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type Name Description
T[] array
Int32 arrayIndex
| Improve this Doc View Source

GetEnumerator()

Gets an over the SlidingBufferMatch in the collection.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>

An over the SlidingBufferMatch in the collection.

| Improve this Doc View Source

Remove(T)

Remove the provided item.

Declaration
public bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
Boolean

True if the item was removed

Implements

IReadOnlyCollection<>