Unosquare
    Show / Hide Table of Contents

    Class DependencyContainer.TypeRegistration

    Represents a Type Registration within the IoC Container.

    Inheritance
    Object
    DependencyContainer.TypeRegistration
    Inherited Members
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.DependencyInjection
    Syntax
    public sealed class TypeRegistration

    Constructors

    TypeRegistration(Type, String)

    Initializes a new instance of the DependencyContainer.TypeRegistration class.

    Declaration
    public TypeRegistration(Type type, string name = null)
    Parameters
    Type Name Description
    Type type

    The type.

    String name

    The name.

    Properties

    Name

    Gets the name.

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

    The name.

    Type

    Gets the type.

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

    The type.

    Methods

    Equals(Object)

    Determines whether the specified Object, is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to compare with this instance.

    Returns
    Type Description
    Boolean

    true if the specified Object is equal to this instance; otherwise, false.

    Overrides
    Object.Equals(Object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    Object.GetHashCode()

    Comments

    Back to top Copyright © 2017-2019 Unosquare