<PackageReference Include="Castle.Windsor" Version="6.0.0" />

Arguments

public sealed class Arguments : IEnumerable<KeyValuePair<object, object>>, IEnumerable
Represents a collection of named and typed arguments used for dependencies resolved via Resolve<T> See: https://github.com/castleproject/Windsor/blob/master/docs/arguments.md
public int Count { get; }

public object this[object key] { get; set; }

public Arguments()

Initializes a new instance of the Arguments class that is empty.

public Arguments(Arguments arguments)

Initializes a new instance of the Arguments class that contains elements copied from the specified Arguments.

public static Arguments FromNamed(IEnumerable<KeyValuePair<string, object>> arguments)

Initializes a new instance of the Arguments class and adds a collection of named arguments, Dictionary<T, U> implements this interface.

public static Arguments FromProperties(object instance)

Initializes a new instance of the Arguments class and adds a collection of named arguments from public properties of a standard or anonymous type.

public static Arguments FromTyped(IEnumerable<KeyValuePair<Type, object>> arguments)

Initializes a new instance of the Arguments class and adds a collection of typed arguments, Dictionary<T, U> implements this interface.

public static Arguments FromTyped(IEnumerable<object> arguments)

Initializes a new instance of the Arguments class and adds a collection of typed arguments.

public void Add(object key, object value)

public Arguments Add(IEnumerable<KeyValuePair<object, object>> arguments)

Adds a collection of named and/or typed arguments.

public Arguments AddNamed(string key, object value)

Adds a named argument.

public Arguments AddNamed(IEnumerable<KeyValuePair<string, object>> arguments)

Adds a collection of named arguments, Dictionary<T, U> implements this interface.

public Arguments AddProperties(object instance)

Adds a collection of named arguments from public properties of a standard or anonymous type.

public Arguments AddTyped(Type key, object value)

Adds a typed argument.

public Arguments AddTyped<TDependencyType>(TDependencyType value)

Adds a typed argument.

public Arguments AddTyped(IEnumerable<object> arguments)

Adds a collection of typed arguments.

public Arguments AddTyped(object[] arguments)

Adds a collection of typed arguments.

public bool Contains(object key)

public IEnumerator<KeyValuePair<object, object>> GetEnumerator()

public void Remove(object key)