PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Mapping­Context­Item Structure

MethodMappingContextItem Structure

Identifies a piece of run-time information available in the context of a MethodMapping. Sets of available context items are exposed on property AvailableContextItems. Implementations of MethodMappingWriter must a set of methods emitting instructions that get supported context items.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public struct MethodMappingContextItem : IEquatable<MethodMappingContextItem>

The MethodMappingContextItem type exposes the following members.

Constructors
  NameDescription
Public methodMethodMappingContextItem
Initializes a new MethodMappingContextItem.
Methods
  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).)
Public methodEquals(MethodMappingContextItem)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString().)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two MethodMappingContextItem are equal.
Public operatorStatic memberInequality
Determines whether two MethodMappingContextItem are different.
Fields
  NameDescription
Public fieldStatic memberAsyncMethodInterceptionAdviceArgs
A MethodMappingContextItem representing the current MethodInterceptionAdviceArgs of async method interception.
Public fieldStatic memberEventInfo
A MethodMappingContextItem representing the current EventInfo.
Public fieldStatic memberEventInterceptionAdviceArgs
A MethodMappingContextItem representing the current EventInterceptionAdviceArgs.
Public fieldStatic memberFieldInfo
A MethodMappingContextItem representing the current FieldInfo.
Public fieldStatic memberHandler
A MethodMappingContextItem representing the current handler (a Delegate, typically in the context of an EventInterceptionAdviceArgs).
Public fieldStatic memberLocationInfo
A MethodMappingContextItem representing the current EventInterceptionAdviceArgs.
Public fieldStatic memberLocationInterceptionAdviceArgs
A MethodMappingContextItem representing the current LocationInterceptionAdviceArgs.
Public fieldStatic memberMethodBase
A MethodMappingContextItem representing the current MethodBase.
Public fieldStatic memberMethodInterceptionAdviceArgs
A MethodMappingContextItem representing the current MethodInterceptionAdviceArgs.
Public fieldStatic memberPropertyInfo
A MethodMappingContextItem representing the current PropertyInfo.
Remarks

A MethodMappingContextItem is uniquely identified by a string.

Context items are typically used to share information between transformations on the same pipeline, so that code generation can be optimized.

See Also