Class DependencyContainer.TypeRegistration
Represents a Type Registration within the IoC Container.
Inherited Members
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 |
|
Overrides
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. |