IsRequired
Gets or sets a value indicating whether the dependency is required. The default value is true. A required dependency is a
mandatory constructor parameter, checked for null; an optional dependency is an optional parameter whose default value is
null.
Declaration
public bool IsRequired { get; set; }Property Value
| Type | Description |
|---|---|
| bool |