Class TypeNameRegistry
- Namespace
- TypedRest.CodeGeneration.CSharp
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
Keeps track of the type names handed out during a generation run, so that no two generated types in the same namespace end up with the same name.
public class TypeNameRegistry
- Inheritance
-
objectTypeNameRegistry
Methods
Register(CSharpIdentifier)
Registers a name for a type, appending a number if it is already taken.
public CSharpIdentifier Register(CSharpIdentifier candidate)
Parameters
candidateCSharpIdentifier
Returns
Register(IEnumerable<CSharpIdentifier>)
Registers the first of the candidates that is still free.
Falls back to appending a number to the last candidate if all of them are taken.
public CSharpIdentifier Register(IEnumerable<CSharpIdentifier> candidates)
Parameters
candidatesIEnumerable<CSharpIdentifier>