PostSharp6.4/API Reference/Post­Sharp.​Aspects Namespace/Arguments Class/Arguments Methods

Arguments Methods

The Arguments type exposes the following members.

Methods
  NameDescription
Public methodClone
Returns a shallow copy of the current object.
Public methodCopyFrom
Copies all the argument values from the elements of Array.
Public methodCopyTo
Copies all arguments values to the specified Array starting at the specified destination Array index.
Public methodStatic memberCreate(Object[])
Creates a weakly-typed Arguments object representing any number of arguments.
Public methodStatic memberCreate<T>(T)
Creates a strongly-typed Arguments object representing 1 argument.
Public methodStatic memberCreate<T0, T1>(T0, T1)
Creates a strongly-typed Arguments object representing 2 arguments.
Public methodStatic memberCreate<T0, T1, T2>(T0, T1, T2)
Creates a strongly-typed Arguments object representing 3 arguments.
Public methodStatic memberCreate<T0, T1, T2, T3>(T0, T1, T2, T3)
Creates a strongly-typed Arguments object representing 4 arguments.
Public methodStatic memberCreate<T0, T1, T2, T3, T4>(T0, T1, T2, T3, T4)
Creates a strongly-typed Arguments object representing 5 arguments.
Public methodStatic memberCreate<T0, T1, T2, T3, T4, T5>(T0, T1, T2, T3, T4, T5)
Creates a strongly-typed Arguments object representing 6 arguments.
Public methodStatic memberCreate<T0, T1, T2, T3, T4, T5, T6>(T0, T1, T2, T3, T4, T5, T6)
Creates a strongly-typed Arguments object representing 7 arguments.
Public methodStatic memberCreate<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.
Public methodGetArgument
Gets the value of the argument at a given index.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodSetArgument
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.
Public methodToArray
Converts the current argument list into an Array.
Extension Methods
  NameDescription
Public Extension MethodToAdvisableCollection<Object>
Converts an IEnumerable<T> into an AdvisableCollection<T>.
(Defined by Extensions.)
Public Extension MethodToAdvisableDictionary<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.)
Public Extension MethodToAdvisableHashSet<Object>
Converts an IEnumerable<T> into an AdvisableHashSet<T>.
(Defined by Extensions.)
See Also