@,System.Collections.Generic.IEnumerable{--1})} @,--1)} @,System.Collections.Generic.KeyValuePair{--1,--2})} @,--1,--2)} @,System.Collections.Generic.IDictionary{--1,--2})}
IBuilderExtensions.With(TBuilder, TField, TField) method¶
Defined in
Type: IBuilderExtensions
Namespace: ReactiveUI.Testing
Assembly: ReactiveUI.Testing.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Overloads¶
- 1.
public static TBuilder With<TBuilder, TField>(this TBuilder builder, out TField field, TField value) where TBuilder : IBuilder - 2.
public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, IEnumerable<TField> values) where TBuilder : IBuilder - 3.
public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, TField value) where TBuilder : IBuilder - 4.
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 - 5.
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 - 6.
public static TBuilder With<TBuilder, TKey, TField>(this TBuilder builder, ref Dictionary<TKey, TField> dictionary, IDictionary<TKey, TField> keyValuePair) where TKey : notnull
1. Overload¶
public static TBuilder With<TBuilder, TField>(this TBuilder builder, out TField field, TField value) where TBuilder : IBuilder
Summary: Adds the specified field to the builder.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
out field | TField | The field. |
value | TField | The value. |
Returns: TBuilder -- The builder.
2. Overload¶
public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, IEnumerable<TField> values) where TBuilder : IBuilder
Summary: Adds the specified list of fields to the builder.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
ref field | List | The field. |
values | IEnumerable | The values. |
Returns: TBuilder -- The builder.
3. Overload¶
public static TBuilder With<TBuilder, TField>(this TBuilder builder, ref List<TField>? field, TField value) where TBuilder : IBuilder
Summary: Adds the specified field to the builder.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
ref field | List | The field. |
value | TField | The value. |
Returns: TBuilder -- The builder.
4. Overload¶
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
Summary: Adds the specified key value pair to the provided dictionary.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TKey | The type of the key. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
ref dictionary | Dictionary | The dictionary. |
keyValuePair | KeyValuePair | The key value pair. |
Returns: TBuilder -- The builder.
5. Overload¶
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
Summary: Adds the specified key and value to the provided dictionary.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TKey | The type of the key. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
ref dictionary | Dictionary | The dictionary. |
key | TKey | The key. |
value | TField | The value. |
Returns: TBuilder -- The builder.
6. Overload¶
public static TBuilder With<TBuilder, TKey, TField>(this TBuilder builder, ref Dictionary<TKey, TField> dictionary, IDictionary<TKey, TField> keyValuePair) where TKey : notnull
Summary: Adds the specified dictionary to the provided dictionary.
Type parameters
| Name | Description |
|---|---|
TBuilder | The type of the builder. |
TKey | The type of the key. |
TField | The type of the field. |
Parameters
| Name | Type | Description |
|---|---|---|
builder | TBuilder | This builder. |
ref dictionary | Dictionary | The dictionary. |
keyValuePair | IDictionary | The key value pair. |
Returns: TBuilder -- The builder.