Base class for arguments to an invocation, a tuple of the declaring ParameterInfo and its value.
public abstract record Argument : IEquatable<Argument>
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.
kind:method, kind:property, kind:ctor. Press Esc to clear.Argument(ParameterInfo)Creates the argument with the given parameter. The ParameterInfo that declares the argument in a method or constructor.ParameterThe ParameterInfo that declares the argument in a method or constructor.RawValueGets the raw, potentially boxed (for value types) value for the argument.AcceptsSignatureRef(Type, Type)A StructRef or PointerRef stands in for a ref struct or pointer parameter.CheckValue(Object?)Checks whether the given value is compatible with the declared Parameter type and nullability constraints.Create<T>(ParameterInfo, T)Creates a typed argument.WithRawValue(Object?)Attemps to replace the argument value.