Argument Class

Definition

Base class for arguments to an invocation, a tuple of the declaring ParameterInfo and its value.

public abstract record Argument : IEquatable<Argument>

Remarks

When using RawValue and WithRawValue(Object?) (to get a new changed record instance), the value is boxed correspondingly to the .NET rules for structs. Therefore, it's always recommended to attempt casting the base Argument to a Argument<T> if you know the type ahead of time, to avoid unnecessary boxing.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (3)

Methods (4)