Show / Hide Table of Contents

Class ResourceAcceptExtensions

Adds accept methods to IResource to visit the resource's properties.

Inheritance
Object
ResourceAcceptExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Firefly.CloudFormationParser.TemplateObjects.Traversal.AcceptExtensions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public static class ResourceAcceptExtensions

Methods

| Improve this Doc View Source

Accept<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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX