MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Declaration­BuildersIIndexer­Builder
Open sandboxFocus

IIndexerBuilder Interface

Allows to complete the construction of an indexer that has been created by an advice.

Namespace: Metalama.Framework.Code.DeclarationBuilders
Assembly: Metalama.Framework.dll
Syntax
public interface IIndexerBuilder : IPropertyOrIndexerBuilder, IFieldOrPropertyOrIndexerBuilder, IHasTypeBuilder, IIndexer, IPropertyOrIndexer, IFieldOrPropertyOrIndexer, IHasAccessors, IHasType, IIndexerInvoker, IHasParametersBuilder, IMemberBuilder, IMemberOrNamedTypeBuilder, IDeclarationBuilder, IHasParameters, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>

Methods

Name Description
AddParameter(string, IType, RefKind, TypedConstant?)

Adds a parameter to the current indexer and specifies its type using an IType.

AddParameter(string, Type, RefKind, TypedConstant?)

Adds a parameter to the current indexer and specifies its type using a reflection Type.

Extension Methods

DeclarationExtensions.Enhancements<T>(T)
DeclarationExtensions.ForCompilation<T>(T?, ICompilation, ReferenceResolutionOptions)
DeclarationExtensions.TryForCompilation<T>(T?, ICompilation, out T?, ReferenceResolutionOptions)
MetricsExtensions.Metrics<TExtensible>(TExtensible)
DeclarationExtensions.ContainedChildren(IDeclaration)
DeclarationExtensions.ContainedDescendants(IDeclaration)
DeclarationExtensions.ContainedDescendantsAndSelf(IDeclaration)
DeclarationExtensions.ContainingAncestors(IDeclaration)
DeclarationExtensions.ContainingAncestorsAndSelf(IDeclaration)
DeclarationExtensions.GetClosestMemberOrNamedType(IDeclaration)
DeclarationExtensions.GetClosestNamedType(IDeclaration)
DeclarationExtensions.GetNamespace(IDeclaration)
DeclarationExtensions.GetTopmostNamedType(IDeclaration)
DeclarationExtensions.IsContainedIn(IDeclaration, IDeclaration)
GenericExtensions.GetOriginalDefinition(IDeclaration)
EligibilityExtensions.IsAdviceEligible(IDeclaration, AdviceKind)
EligibilityExtensions.IsAspectEligible(IDeclaration, Type, EligibleScenarios)
EligibilityExtensions.IsAspectEligible<T>(IDeclaration, EligibleScenarios)
EligibilityExtensions.IsContractAdviceEligible(IDeclaration, ContractDirection)
GenericExtensions.GetOriginalDefinition(IMember)
MemberExtensions.IsOverridable(IMember)
GenericExtensions.GetBase(IMemberOrNamedType)
GenericExtensions.GetOriginalDefinition(IMemberOrNamedType)
GenericExtensions.IsSelfOrDeclaringTypeGeneric(IMemberOrNamedType)