Skip to content

@,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

View source

Summary: Adds the specified field to the builder.

Type parameters

NameDescription
TBuilderThe type of the builder.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
out fieldTFieldThe field.
valueTFieldThe 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

View source

Summary: Adds the specified list of fields to the builder.

Type parameters

NameDescription
TBuilderThe type of the builder.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
ref fieldList?The field.
valuesIEnumerableThe 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

View source

Summary: Adds the specified field to the builder.

Type parameters

NameDescription
TBuilderThe type of the builder.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
ref fieldList?The field.
valueTFieldThe 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

View source

Summary: Adds the specified key value pair to the provided dictionary.

Type parameters

NameDescription
TBuilderThe type of the builder.
TKeyThe type of the key.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
ref dictionaryDictionaryThe dictionary.
keyValuePairKeyValuePairThe 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

View source

Summary: Adds the specified key and value to the provided dictionary.

Type parameters

NameDescription
TBuilderThe type of the builder.
TKeyThe type of the key.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
ref dictionaryDictionaryThe dictionary.
keyTKeyThe key.
valueTFieldThe 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

View source

Summary: Adds the specified dictionary to the provided dictionary.

Type parameters

NameDescription
TBuilderThe type of the builder.
TKeyThe type of the key.
TFieldThe type of the field.

Parameters

NameTypeDescription
builderTBuilderThis builder.
ref dictionaryDictionaryThe dictionary.
keyValuePairIDictionaryThe key value pair.

Returns: TBuilder -- The builder.