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 : IBuilder
Parameters
builder
TBuilderThis builder.
field
List<TField>The field.
values
IEnumerable<TField>The values.
Returns
- TBuilder
The builder.
Type Parameters
TBuilder
The type of the builder.
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 : IBuilder
Parameters
builder
TBuilderThis builder.
field
List<TField>The field.
value
TFieldThe value.
Returns
- TBuilder
The builder.
Type Parameters
TBuilder
The type of the builder.
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
TBuilderThis builder.
field
TFieldThe field.
value
TFieldThe value.
Returns
- TBuilder
The builder.
Type Parameters
TBuilder
The type of the builder.
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
TBuilderThis 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 : IBuilder where TKey : notnull
Parameters
builder
TBuilderThis builder.
dictionary
Dictionary<TKey, TField>The dictionary.
keyValuePair
KeyValuePair<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>, 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 : IBuilder where TKey : notnull
Parameters
builder
TBuilderThis builder.
dictionary
Dictionary<TKey, TField>The dictionary.
key
TKeyThe key.
value
TFieldThe value.
Returns
- TBuilder
The builder.
Type Parameters
TBuilder
The type of the builder.
TKey
The type of the key.
TField
The type of the field.