Table of Contents

Class IBuilderExtensions

Namespace
ReactiveUI.Testing
Assembly
ReactiveUI.Testing.dll

Default methods for the IBuilder abstraction.

public static class IBuilderExtensions
Inheritance
IBuilderExtensions

Methods

With<TBuilder, TField>(TBuilder, ref List<TField>?, IEnumerable<TField>)

Adds the specified list of fields to the builder.

public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, IEnumerable<TField> values) where TBuilder : notnull, IBuilder where TField : notnull

Parameters

builder TBuilder
field List<TField>

The field.

values IEnumerable<TField>

The values.

Returns

TBuilder

The builder.

Type Parameters

TBuilder
TField

The type of the field.

With<TBuilder, TField>(TBuilder, ref List<TField>?, TField)

Adds the specified field to the builder.

public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, TField value) where TBuilder : notnull, IBuilder where TField : notnull

Parameters

builder TBuilder
field List<TField>

The field.

value TField

The value.

Returns

TBuilder

The builder.

Type Parameters

TBuilder
TField

The type of the field.

With<TBuilder, TField>(TBuilder, out TField, TField)

Adds the specified field to the builder.

public static TBuilder With<TBuilder, TField>(this TBuilder builder, out TField field, TField value) where TBuilder : IBuilder

Parameters

builder TBuilder
field TField

The field.

value TField

The value.

Returns

TBuilder

The builder.

Type Parameters

TBuilder
TField

The type of the field.

With<TBuilder, TKey, TField>(TBuilder, ref Dictionary<TKey, TField>, IDictionary<TKey, TField>)

Adds the specified dictionary to the provided dictionary.

public static TBuilder With<TBuilder, TKey, TField>(this TBuilder builder, ref Dictionary<TKey, TField> dictionary, IDictionary<TKey, TField> keyValuePair) where TKey : notnull

Parameters

builder TBuilder

This builder.

dictionary Dictionary<TKey, TField>

The dictionary.

keyValuePair IDictionary<TKey, TField>

The key value pair.

Returns

TBuilder

The builder.

Type Parameters

TBuilder

The type of the builder.

TKey

The type of the key.

TField

The type of the field.

With<TBuilder, TKey, TField>(TBuilder, ref Dictionary<TKey, TField>, KeyValuePair<TKey, TField>)

Adds the specified key value pair to the provided dictionary.

public static TBuilder With<TBuilder, TKey, TField>(this TBuilder builder, ref Dictionary<TKey, TField> dictionary, KeyValuePair<TKey, TField> keyValuePair) where TBuilder : notnull, IBuilder where TKey : notnull where TField : notnull

Parameters

builder TBuilder
dictionary Dictionary<TKey, TField>

The dictionary.

keyValuePair KeyValuePair<TKey, TField>

The key value pair.

Returns

TBuilder

The builder.

Type Parameters

TBuilder
TKey

The type of the key.

TField

The type of the field.

With<TBuilder, TKey, TField>(TBuilder, ref Dictionary<TKey, TField>, TKey, TField)

Adds the specified key and value to the provided dictionary.

public static TBuilder With<TBuilder, TKey, TField>(this TBuilder builder, ref Dictionary<TKey, TField> dictionary, TKey key, TField value) where TBuilder : notnull, IBuilder where TKey : notnull where TField : notnull

Parameters

builder TBuilder
dictionary Dictionary<TKey, TField>

The dictionary.

key TKey

The key.

value TField

The value.

Returns

TBuilder

The builder.

Type Parameters

TBuilder
TKey

The type of the key.

TField

The type of the field.