Class ResourceAcceptExtensions
Adds accept methods to IResource to visit the resource's properties.
Inherited Members
Namespace: Firefly.CloudFormationParser.TemplateObjects.Traversal.AcceptExtensions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public static class ResourceAcceptExtensions
Methods
| Improve this Doc View SourceAccept<TVisitor>(IResource, TVisitor)
Performs dispatch for the current object using the visitor's DoAccept method.
Declaration
public static IResource Accept<TVisitor>(this IResource self, TVisitor visitor)
where TVisitor : ITemplateObjectVisitor<NullTemplateObjectVisitorContext>
Parameters
Type | Name | Description |
---|---|---|
IResource | self | The object accepting the visitor. |
TVisitor | visitor | The visitor. |
Returns
Type | Description |
---|---|
IResource | This dictionary |
Type Parameters
Name | Description |
---|---|
TVisitor | The type of the visitor. |
Accept<TContext>(IResource, ITemplateObjectVisitor<TContext>, TContext)
Performs dispatch for the current object using the visitor's DoAccept method.
Declaration
public static IResource Accept<TContext>(this IResource self, ITemplateObjectVisitor<TContext> visitor, TContext context)
where TContext : ITemplateObjectVisitorContext<TContext>
Parameters
Type | Name | Description |
---|---|---|
IResource | self | The object accepting the visitor. |
ITemplateObjectVisitor<TContext> | visitor | The visitor. |
TContext | context | The context. |
Returns
Type | Description |
---|---|
IResource | This JToken |
Type Parameters
Name | Description |
---|---|
TContext | The type of the context. |