Arguments Class |
Encapsulation of method arguments.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)

C#
public class Arguments : IList<Object>, ICollection<Object>, IEnumerable<Object>, IEnumerable, ICloneable
The Arguments type exposes the following members.

Name | Description | |
---|---|---|
![]() | Count |
Gets the number of arguments encapsulated by the current object.
|
![]() | Item |
Gets or sets the value of an argument. Setting the value is only supported in specific situations. See SetArgument(Int32, Object) for details.
|

Name | Description | |
---|---|---|
![]() | Clone |
Returns a shallow copy of the current object.
|
![]() | CopyFrom |
Copies all the argument values from the elements of Array.
|
![]() | CopyTo | |
![]() ![]() | Create(Object[]) |
Creates a weakly-typed Arguments object representing any number of arguments.
|
![]() ![]() | Create<T>(T) |
Creates a strongly-typed Arguments object representing 1 argument.
|
![]() ![]() | Create<T0, T1>(T0, T1) |
Creates a strongly-typed Arguments object representing 2 arguments.
|
![]() ![]() | Create<T0, T1, T2>(T0, T1, T2) |
Creates a strongly-typed Arguments object representing 3 arguments.
|
![]() ![]() | Create<T0, T1, T2, T3>(T0, T1, T2, T3) |
Creates a strongly-typed Arguments object representing 4 arguments.
|
![]() ![]() | Create<T0, T1, T2, T3, T4>(T0, T1, T2, T3, T4) |
Creates a strongly-typed Arguments object representing 5 arguments.
|
![]() ![]() | Create<T0, T1, T2, T3, T4, T5>(T0, T1, T2, T3, T4, T5) |
Creates a strongly-typed Arguments object representing 6 arguments.
|
![]() ![]() | Create<T0, T1, T2, T3, T4, T5, T6>(T0, T1, T2, T3, T4, T5, T6) |
Creates a strongly-typed Arguments object representing 7 arguments.
|
![]() ![]() | Create<T0, T1, T2, T3, T4, T5, T6, T7>(T0, T1, T2, T3, T4, T5, T6, T7) |
Creates a strongly-typed Arguments object representing 8 arguments.
|
![]() | GetArgument |
Gets the value of the argument at a given index.
|
![]() | GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() | SetArgument |
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.
|
![]() | ToArray |
Converts the current argument list into an Array.
|

Name | Description | |
---|---|---|
![]() ![]() | Empty |
Empty list of Arguments.
|

Name | Description | |
---|---|---|
![]() | ToAdvisableCollection<Object> |
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.) |
![]() | ToAdvisableDictionary<Object, TKey, TValue> |
Converts an IEnumerable<T> into a AdvisableDictionary<TKey, TValue> given a method returning the item key and a method returning the item value.
(Defined by Extensions.) |
![]() | ToAdvisableHashSet<Object> |
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.) |

![]() |
---|
As a result of optimizations, an Arguments object may be shared between different advices. If an advice implementation needs to access an Arguments object after it has given over control, it should take a reference to a clone instead of the initial object itself. |
![]() |
---|
Implementations of this type should be considered an implementation detail and should not be accessed by user code. |
