Table of Contents

Class ComponentParameterCollection

Namespace
Bunit
Assembly
Bunit.Core.dll

A collection for ComponentParameter.

public class ComponentParameterCollection : ICollection<ComponentParameter>, IReadOnlyCollection<ComponentParameter>, IEnumerable<ComponentParameter>, IEnumerable
Inheritance
ComponentParameterCollection
Implements
Inherited Members
Extension Methods

Constructors

ComponentParameterCollection()

public ComponentParameterCollection()

Properties

Count

Gets the number of ComponentParameter in the collection.

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

Methods

Add(ComponentParameter)

Adds a item to the collection.

public void Add(ComponentParameter item)

Parameters

item ComponentParameter

Parameter to add to the collection.

Add(IEnumerable<ComponentParameter>)

Adds an enumerable of parameters to the collection.

public void Add(IEnumerable<ComponentParameter> parameters)

Parameters

parameters IEnumerable<ComponentParameter>

Parameters to add.

Clear()

public void Clear()

Contains(ComponentParameter)

Checks if the item is in the collection.

public bool Contains(ComponentParameter item)

Parameters

item ComponentParameter

Parameter to check with.

Returns

bool

True if item is in the collection, false otherwise.

CopyTo(ComponentParameter[], int)

public void CopyTo(ComponentParameter[] array, int arrayIndex)

Parameters

array ComponentParameter[]
arrayIndex int

GetEnumerator()

public IEnumerator<ComponentParameter> GetEnumerator()

Returns

IEnumerator<ComponentParameter>

Remove(ComponentParameter)

public bool Remove(ComponentParameter item)

Parameters

item ComponentParameter

Returns

bool

ToRenderFragment<TComponent>()

Creates a RenderFragment that will render a component of type TComponent with the parameters in the collection passed to it.

public RenderFragment ToRenderFragment<TComponent>() where TComponent : IComponent

Returns

RenderFragment

Type Parameters

TComponent

Type of component to render.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.