Configure Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Configure<TOptions>(Action<TOptions>)
Provides a generic way to support the options pattern which enables using custom options classes to represent a group of related settings.
public static TOptions Configure<TOptions>(this Action<TOptions> setup) where TOptions : class, IParameterObject, new()
Parameters
setupAction<TOptions>The delegate that will configure the public read-write properties of
TOptions.
Returns
- TOptions
A default constructed instance of
TOptionsinitialized with the options ofsetup.
Type Parameters
TOptionsThe type of the custom options class.
- See Also