Show / Hide Table of Contents

Class InjectionMember<TMemberInfo, TData>

Inheritance
Object
InjectionMember
InjectionMember<TMemberInfo, TData>
MemberInfoBase<TMemberInfo>
MethodBase<TMemberInfo>
Implements
IEquatable<TMemberInfo>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public abstract class InjectionMember<TMemberInfo, TData> : InjectionMember, IEquatable<TMemberInfo> where TMemberInfo : MemberInfo
Type Parameters
Name Description
TMemberInfo
TData

Constructors

| Improve this Doc View Source

InjectionMember(TMemberInfo, TData)

Declaration
protected InjectionMember(TMemberInfo info, TData data)
Parameters
Type Name Description
TMemberInfo info
TData data
| Improve this Doc View Source

InjectionMember(String, TData)

Declaration
protected InjectionMember(string name, TData data)
Parameters
Type Name Description
String name
TData data

Fields

| Improve this Doc View Source

NoMatchFound

Declaration
protected const string NoMatchFound = "No member matching data has been found."
Field Value
Type Description
String

Properties

| Improve this Doc View Source

BuildRequired

Declaration
public override bool BuildRequired { get; }
Property Value
Type Description
Boolean
Overrides
InjectionMember.BuildRequired
| Improve this Doc View Source

Data

Declaration
public virtual TData Data { get; }
Property Value
Type Description
TData
| Improve this Doc View Source

IsInitialized

Declaration
public bool IsInitialized { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Selection

Declaration
protected TMemberInfo Selection { get; set; }
Property Value
Type Description
TMemberInfo

Methods

| Improve this Doc View Source

AddPolicies<TContext, TPolicySet>(Type, Type, String, ref TPolicySet)

Declaration
public override void AddPolicies<TContext, TPolicySet>(Type registeredType, Type mappedToType, string name, ref TPolicySet policies)
    where TContext : IResolveContext where TPolicySet : IPolicySet
Parameters
Type Name Description
Type registeredType
Type mappedToType
String name
TPolicySet policies
Type Parameters
Name Description
TContext
TPolicySet
Overrides
Unity.Injection.InjectionMember.AddPolicies<TContext, TPolicySet>(System.Type, System.Type, System.String, TPolicySet)
| Improve this Doc View Source

DeclaredMembers(Type)

Declaration
public abstract IEnumerable<TMemberInfo> DeclaredMembers(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
IEnumerable<TMemberInfo>
| Improve this Doc View Source

Equals(TMemberInfo)

Declaration
public virtual bool Equals(TMemberInfo other)
Parameters
Type Name Description
TMemberInfo other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
| Improve this Doc View Source

MemberInfo(Type)

Declaration
public abstract TMemberInfo MemberInfo(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
TMemberInfo
| Improve this Doc View Source

SelectMember(Type, InjectionMember)

Declaration
protected virtual TMemberInfo SelectMember(Type type, InjectionMember member)
Parameters
Type Name Description
Type type
InjectionMember member
Returns
Type Description
TMemberInfo

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