Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Class ReferenceEnd

Represents an end of a code reference. Code references have two ends: a referenced one (the Origin end) and a referencing one (the Destination end).

Inheritance
ReferenceEnd
Namespace: Metalama.Framework.Validation
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class ReferenceEnd

Properties

Name Description
Assembly

Gets the IAssembly (or ICompilation) for which the analysis was performed.

Declaration

Gets the declaration that was analyzed, whose kind corresponds to the Granularity of the analysis for this end of the reference.

Granularity

Gets the granularity at which the analysis was performed for this end of the reference.

Member

Gets the IMember of the declaration for the analysis was performed, or throw an exception if the analysis Granularity was coarser than Member.

Namespace

Gets the INamespace of the declaration for the analysis was performed, or throw an exception if the analysis Granularity was coarser than Namespace.

ParameterOrAttribute

Gets the IParameter, ITypeParameter or IAttribute for which the analysis was performed, or throw an exception if the analysis Granularity was coarser than ParameterOrAttribute.

TopLevelType

Gets the top-level INamedType of the declaration for the analysis was performed, or throw an exception if the analysis Granularity was coarser than TopLevelType.

Type

Gets the closest INamedType of the declaration for the analysis was performed, or throw an exception if the analysis Granularity was coarser than Type.

Methods

Name Description
ToString()

Extension Methods

  • Navigation