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).
Namespace: Metalama.Extensions.Validation
Assembly: Metalama.Extensions.Validation.dll
Syntax
[CompileTime]
public sealed class ReferenceEndProperties
| 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() |