Open sandboxFocus

Class DependencyProperties

Specifications of an introduced dependency.

Inheritance
DependencyProperties
Namespace: Metalama.Extensions.DependencyInjection
Assembly: Metalama.Extensions.DependencyInjection.dll
Syntax
[CompileTime]
public record DependencyProperties : IEquatable<DependencyProperties>

Constructors

Name Description
DependencyProperties(DependencyProperties)
DependencyProperties(INamedType, IType, string, bool, bool?, bool?, DeclarationKind)

Initializes a new instance of the DependencyProperties class. This overload excepts the dependency type as an IType.

DependencyProperties(INamedType, Type, string, bool, bool?, bool?, DeclarationKind)

Initializes a new instance of the DependencyProperties class. This overload excepts the dependency type as a Type.

Properties

Name Description
DependencyType

Gets the dependency type.

EqualityContract
IsLazy

Gets a value indicating whether the dependency should be resolved lazily upon first use. The default value, when this property is neither specified nor overwritten, is false.

IsRequired

Gets a value indicating whether the dependency is required. When this property is set to false, the code will accept missing dependencies. The default value, when this property is neither specified nor overwritten, is true.

IsStatic

Gets a value indicating whether the dependency field or property is static.

Kind

Gets the kind of declaration to introduce i.e. Field or Property.

Name

Gets the name of the field or property that should expose the dependency.

Options

Gets the options set by the options framework.

TargetType

Gets the type into which the dependency should be injected.

Methods

Name Description
Equals(DependencyProperties?)
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
operator ==(DependencyProperties?, DependencyProperties?)
operator !=(DependencyProperties?, DependencyProperties?)