Show / Hide Table of Contents

Class ParameterBase

A base class for implementing ParameterValue classes that deal in explicit types.

Inheritance
Object
ParameterValue
ParameterBase
InjectionParameter
OptionalParameter
ResolvedArrayParameter
ResolvedParameter
Implements
IEquatable<Type>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public abstract class ParameterBase : ParameterValue, IEquatable<Type>

Constructors

| Improve this Doc View Source

ParameterBase(Type)

Create a new ParameterBase that exposes information about the given parameterType.

Declaration
protected ParameterBase(Type parameterType = null)
Parameters
Type Name Description
Type parameterType

Type of the parameter.

Properties

| Improve this Doc View Source

ParameterType

The type of parameter this object represents.

Declaration
public virtual Type ParameterType { get; }
Property Value
Type Description
Type

Methods

| Improve this Doc View Source

Equals(Type)

Declaration
public override bool Equals(Type t)
Parameters
Type Name Description
Type t
Returns
Type Description
Boolean
Overrides
ParameterValue.Equals(Type)

Implements

System.IEquatable<T>

Extension Methods

InjectionMatching.Matches(Object, Type)
InjectionMatching.MatchesObject(Object, Type)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2020 .NET Foundation and Contributors. All Rights Reserved