ParameterValueProviderAttribute Class
A base class attribute used for parameter completion.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public abstract class ParameterValueProviderAttribute : Attribute
- Namespace
- Spectre
.Console .Cli - Base Types
-
- Attribute
Attributes
-
Attribute
Usage Attribute
Methods
-
abstract bool TryGetValue
( Command Parameter Context, object) - Gets a value for the parameter.
Extension Methods
-
T And
< Parameter Value Provider Attribute> (Action < Parameter Value Provider Attribute> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.
See Also
- System.Attribute