This is the online documentation for PostSharp 4.3.
Download PDF or CHM. Go to v4.3 or v5.0
Arguments Class
Encapsulation of method arguments.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.Arguments

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public class Arguments : IEnumerable<Object>, 
	IEnumerable, IList<Object>, ICollection<Object>, 
	ICloneable

The Arguments type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of arguments encapsulated by the current object.
Public propertyItem
Gets or sets the value of an argument.
Top
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 argument at a given index.
Public methodToArray
Converts the current argument list into an Array.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Empty list of Arguments.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
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.)
Top
Remarks
Note Note
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.
Note Note
Implementations of this type should be considered an implementation detail and should not be accessed by user code.
See Also