Class DependencyDescriptor

Describes a dependency (a property or parameter).

Inheritance
System.Object
DependencyDescriptor
Implements
System.IEquatable<DependencyDescriptor>
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public sealed class DependencyDescriptor : Object
Remarks

This class is required as there is no common base class for System.Reflection.ParameterInfo and System.Reflection.PropertyInfo.

Constructors

DependencyDescriptor(Object)

Creates a new DependencyDescriptor instance.

Declaration
public DependencyDescriptor(object original)
Parameters
Type Name Description
System.Object original

The original member which should be either a System.Reflection.ParameterInfo or a System.Reflection.PropertyInfo instance.

Properties

Name

The name of dependency (parameter or property).

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Options

Bound options.

Declaration
public OptionsAttribute Options { get; }
Property Value
Type Description
OptionsAttribute

Original

The original member (which is either a System.Reflection.PropertyInfo or a System.Reflection.ParameterInfo).

Declaration
public object Original { get; }
Property Value
Type Description
System.Object

Type

The type of dependency (parameter or property).

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type

Methods

<Clone>$()

Declaration
public DependencyDescriptor <Clone>$()
Returns
Type Description
DependencyDescriptor

Equals(DependencyDescriptor)

Declaration
public bool Equals(DependencyDescriptor other)
Parameters
Type Name Description
DependencyDescriptor other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(DependencyDescriptor, DependencyDescriptor)

Declaration
public static bool operator ==(DependencyDescriptor left, DependencyDescriptor right)
Parameters
Type Name Description
DependencyDescriptor left
DependencyDescriptor right
Returns
Type Description
System.Boolean

Inequality(DependencyDescriptor, DependencyDescriptor)

Declaration
public static bool operator !=(DependencyDescriptor left, DependencyDescriptor right)
Parameters
Type Name Description
DependencyDescriptor left
DependencyDescriptor right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<>
In This Article
Back to top Generated by DocFX