Skip to content

ConstructorParameterEntry

NexusLabs.Needlr

NexusLabs.Needlr.Catalog

ConstructorParameterEntry Class

Represents a constructor parameter.

public sealed record ConstructorParameterEntry : System.IEquatable<NexusLabs.Needlr.Catalog.ConstructorParameterEntry>

Inheritance System.Object 🡒 ConstructorParameterEntry

Implements System.IEquatable<ConstructorParameterEntry>

Constructors

ConstructorParameterEntry(string, string, bool, string) Constructor

Represents a constructor parameter.

public ConstructorParameterEntry(string Name, string TypeName, bool IsKeyed=false, string? ServiceKey=null);

Parameters

Name System.String

The parameter name.

TypeName System.String

The fully qualified type name of the parameter.

IsKeyed System.Boolean

True if this is a keyed service parameter.

ServiceKey System.String

The service key if this is a keyed parameter.

Properties

ConstructorParameterEntry.IsKeyed Property

True if this is a keyed service parameter.

public bool IsKeyed { get; init; }

Property Value

System.Boolean

ConstructorParameterEntry.Name Property

The parameter name.

public string Name { get; init; }

Property Value

System.String

ConstructorParameterEntry.ServiceKey Property

The service key if this is a keyed parameter.

public string? ServiceKey { get; init; }

Property Value

System.String

ConstructorParameterEntry.TypeName Property

The fully qualified type name of the parameter.

public string TypeName { get; init; }

Property Value

System.String