Class ParentPropertyConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Sets a property named Parent on the model type to the value
of the model of the parent command.
public class ParentPropertyConvention : IConvention
- Inheritance
-
objectParentPropertyConvention
- Implements
Methods
Apply(ConventionContext)
Apply the convention.
public virtual void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.