Open sandboxFocus

Class ArgumentsArray

Implements Arguments for a list of arguments of any length and type.

Inheritance
ArgumentsArray
Namespace: PostSharp.Aspects.Internals
Assembly: PostSharp.dll
Syntax
[Internal]
public sealed class ArgumentsArray : Arguments, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable, ICloneable
Remarks

Unlike the generic implementations of Arguments, ArgumentsArray boxes all arguments into an Array. This results in lower performance and higher memory usage.

Constructors

Name Description
ArgumentsArray(object[])

Initializes a new instance of the ArgumentsArray class.

Properties

Name Description
Arguments

Gets or sets the underlying array of arguments.

Methods

Name Description
CopyFrom(object[], int)

Copies all the argument values from the elements of an Array.

CopyTo(object[], int)

Copies all argument values to the specified Array, starting at the specified index of the destination Array.

GetArgument(int)

Gets the value of the argument at a given index.

SetArgument(int, object)

Sets the value of the ref or out argument at a given index. Replacing an argument value is supported only in some advices and is silently ignored in unsupported scenarios. See Remarks for details.