Table of Contents

Class Statement

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Base class for statements.

public abstract class Statement : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
Statement
Implements
Derived
Inherited Members
Extension Methods

Remarks

This class is useful even though it doesn't provide any additional functionality: It can be used to communicate more information in APIs, e.g. "this subnode will always be a statement"

Constructors

Statement()

protected Statement()

Fields

Null

public static readonly Statement Null

Field Value

Statement

Properties

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

Methods

Clone()

public Statement Clone()

Returns

Statement

ReplaceWith(Func<Statement, Statement>)

public Statement ReplaceWith(Func<Statement, Statement> replaceFunction)

Parameters

replaceFunction Func<Statement, Statement>

Returns

Statement

Operators

implicit operator Statement(Pattern)

public static implicit operator Statement(Pattern pattern)

Parameters

pattern Pattern

Returns

Statement