Table of Contents

Class DialogParameters<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

The parameters passed into a MudDialog instance.

public class DialogParameters<T> : DialogParameters, IEnumerable<KeyValuePair<string, object?>>, IEnumerable

Type Parameters

T
Inheritance
DialogParameters<T>
Implements
Inherited Members
Extension Methods

Constructors

DialogParameters()

public DialogParameters()

Methods

Add<TParam>(Expression<Func<T, TParam>>, TParam)

Adds a parameter using a member expression.

public void Add<TParam>(Expression<Func<T, TParam>> propertyExpression, TParam value)

Parameters

propertyExpression Expression<Func<T, TParam>>

The property to add as a parameter.

value TParam

The parameter value.

Type Parameters

TParam

The type of parameter to add.

Get<TParam>(Expression<Func<T, TParam>>)

Gets a parameter using a property expression.

public TParam? Get<TParam>(Expression<Func<T, TParam>> propertyExpression)

Parameters

propertyExpression Expression<Func<T, TParam>>

The property to get as a parameter.

Returns

TParam

The parameter value.

Type Parameters

TParam

The type of parameter to get.

TryGet<TParam>(Expression<Func<T, TParam>>)

Gets a parameter using a property expression or a default value if no parameter was found.

public TParam? TryGet<TParam>(Expression<Func<T, TParam>> propertyExpression)

Parameters

propertyExpression Expression<Func<T, TParam>>

The property to get as a parameter.

Returns

TParam

The parameter value.

Type Parameters

TParam

The type of parameter to get.

See Also