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
-
objectIndexerBuilder
- 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
implementationCSharpClassThe generated class to add the members to.
interfaceTypeCSharpIdentifierThe 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
keystringendpointIndexerEndpointgeneratorIEndpointGenerator
Returns
GetImplementationType(IndexerEndpoint, INamingStrategy)
protected override CSharpIdentifier GetImplementationType(IndexerEndpoint endpoint, INamingStrategy naming)
Parameters
endpointIndexerEndpointnamingINamingStrategy
Returns
GetInterfaceType(CSharpIdentifier, bool)
protected override CSharpIdentifier GetInterfaceType(CSharpIdentifier implementationType, bool withInterfaces)
Parameters
implementationTypeCSharpIdentifierwithInterfacesbool