Table of Contents

Class IndexerBuilder

Namespace
TypedRest.CodeGeneration.CSharp.Endpoints.Generic
Assembly
TypedRest.CodeGeneration.CSharp.dll

Builds C# code snippets for IndexerEndpoints.

public class IndexerBuilder : BuilderBase<IndexerEndpoint>, IBuilder<IndexerEndpoint>, IBuilder
Inheritance
object
IndexerBuilder
Implements
Inherited Members

Methods

AddInterfaceAdapters(CSharpClass, CSharpIdentifier)

Adds explicit interface implementations to a generated class for members that it inherits with concrete endpoint types while interfaceType declares them with the corresponding interface types (e.g. an indexer returning IFooEndpoint rather than FooEndpoint).

protected override void AddInterfaceAdapters(CSharpClass implementation, CSharpIdentifier interfaceType)

Parameters

implementation CSharpClass

The generated class to add the members to.

interfaceType CSharpIdentifier

The endpoint interface the generated interface derives from.

GetAdditional(string, IndexerEndpoint, IEndpointGenerator)

protected override (IEnumerable<ICSharpType> types, IEnumerable<CSharpIdentifier> typeArguments) GetAdditional(string key, IndexerEndpoint endpoint, IEndpointGenerator generator)

Parameters

key string
endpoint IndexerEndpoint
generator IEndpointGenerator

Returns

(IEnumerable<ICSharpType> types, IEnumerable<CSharpIdentifier> typeArguments)

GetImplementationType(IndexerEndpoint, INamingStrategy)

protected override CSharpIdentifier GetImplementationType(IndexerEndpoint endpoint, INamingStrategy naming)

Parameters

endpoint IndexerEndpoint
naming INamingStrategy

Returns

CSharpIdentifier

GetInterfaceType(CSharpIdentifier, bool)

protected override CSharpIdentifier GetInterfaceType(CSharpIdentifier implementationType, bool withInterfaces)

Parameters

implementationType CSharpIdentifier
withInterfaces bool

Returns

CSharpIdentifier