PostSharpAPI ReferencePost­Sharp.​Aspects.​InternalsArguments­Array
Open sandboxFocus

ArgumentsArray Class

Implementation of Arguments representing a list of arguments of arbitrary length and type.

Inheritance
ArgumentsArray
Implements
IList<Object>
System.Collections.Generic.ICollection<Object>
System.Collections.Generic.IEnumerable<Object>
System.Collections.IEnumerable
System.ICloneable
Namespace: PostSharp.Aspects.Internals
Assembly: PostSharp.dll
Syntax
[Internal]
public sealed class ArgumentsArray : Arguments
Remarks

Unless generic implementations of Arguments, ArgumentsArray boxes all arguments into an Array, resulting in lower performance and higher memory usage.

Constructors

Name Description
ArgumentsArray(Object[])

Initializes a new ArgumentsArray.

Properties

Name Description
Arguments

Gets or sets the underlying array of arguments.

Methods

Name Description
CopyFrom(Object[], Int32)

Copies all the argument values from the elements of Array.

CopyTo(Object[], Int32)

Copies all arguments values to the specified Array starting at the specified destination Array index.

GetArgument(Int32)

Gets the value of the argument at a given index.

SetArgument(Int32, 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 non-supported scenarios. See Remarks for details.