Class CollectionPattern
- Namespace
- TypedRest.CodeGeneration.Patterns.Generic
- Assembly
- TypedRest.CodeGeneration.dll
A pattern that generates CollectionEndpoints.
public class CollectionPattern : IndexerPattern, IPattern
- Inheritance
-
objectCollectionPattern
- Implements
- Inherited Members
Methods
TryGetEndpoint(PathTree, IPatternMatcher)
Generates an endpoint for the specified path tree, if it matches the pattern.
public override IEndpoint? TryGetEndpoint(PathTree tree, IPatternMatcher patternMatcher)
Parameters
treePathTreeThe path tree to try to match against the pattern.
patternMatcherIPatternMatcherThe pattern matcher to use for matching child trees.
Returns
- IEndpoint
The endpoint if the pattern matched;
nullotherwise.