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
TypeExpected type.
InvalidDependencyCastException(Type, Type)
Creates a new InvalidDependencyCastException instance.
public InvalidDependencyCastException(Type dependencyType, Type resultType)
Parameters
Properties
DependencyType
Expected type.
public Type DependencyType { get; }
Property Value
ResultType
Resolved dependency type.
public Type? ResultType { get; }