CloneConstructorArgumentBinding

Models & Types · AiDotNet.Models

Retains the declaring identity of constructor state, including private or shadowed members. Open generic declaring types are rebound to the corresponding closed base during cloning.

Constructors

Constructor Summary
CloneConstructorArgumentBinding(string parameterName, IReadOnlyList<MemberInfo> members) Creates a binding to one or more readable fields/properties.

Properties

Property Summary
CloneConstructorArgumentKind Kind { get; } Whether the argument uses recorded members or its declared default.
IReadOnlyList<MemberInfo> Members { get; } The immutable, declaring-type-aware path from the original instance.
string ParameterName { get; } The actual constructor parameter name, not a heuristic member alias.

Methods

Method Summary
CloneConstructorArgumentBinding UseDefault(string parameterName) Creates a binding to the parameter’s own optional default.