Table of Contents

Class InvalidDependencyCastException

Namespace
LfrlAnvil.Dependencies.Exceptions
Assembly
LfrlAnvil.Dependencies.dll

Represents an error that occurred due to an invalid type cast of a resolved dependency.

public class InvalidDependencyCastException : InvalidCastException, ISerializable
Inheritance
InvalidDependencyCastException
Implements
Inherited Members

Constructors

InvalidDependencyCastException(Type)

Creates a new InvalidDependencyCastException instance.

public InvalidDependencyCastException(Type dependencyType)

Parameters

dependencyType Type

Expected type.

InvalidDependencyCastException(Type, Type)

Creates a new InvalidDependencyCastException instance.

public InvalidDependencyCastException(Type dependencyType, Type resultType)

Parameters

dependencyType Type

Expected type.

resultType Type

Resolved dependency type.

Properties

DependencyType

Expected type.

public Type DependencyType { get; }

Property Value

Type

ResultType

Resolved dependency type.

public Type? ResultType { get; }

Property Value

Type