PostSharp5.0//API Reference/Post­Sharp.​Reflection Namespace/Semantic­Info Structure

SemanticInfo Structure

Provides information about the semantic of a declaration in the source programming language. For instance an MSIL method can be in C# a property getter, an operator, an anonymous method, and so on.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: (
public struct SemanticInfo

The SemanticInfo type exposes the following members.

Public propertyDisplayName
Gets a human-readable description of the Semantic property.
Public propertyIsCompilerGenerated
Determines whether the declaration is compiler-generated.
Public propertyIsSelectable
Determines whether the declaration can be safely selected in a pointcut using the standard System.Reflection API.
Public propertySemantic
Gets the semantic of the MSIL method in the source language.
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also