StatementCollection Class

Represents a collection of statements.

public class StatementCollection : CodeObjectCollection<Statement>
Inheritance
CodeObjectCollection<Statement> StatementCollection

Constructors

NameDescription
StatementCollection()
StatementCollection(CodeObject)

StatementCollection overloads

StatementCollection()

StatementCollection.cs
public StatementCollection()

No documentation is available.

StatementCollection(CodeObject)

StatementCollection.cs
public StatementCollection(CodeObject parent)
Parameters
parent CodeObject

No documentation is available.

Methods

NameDescription
Add(Expression)
Add<TCodeObject>(TCodeObject)

Add overloads

Add(Expression)

StatementCollection.cs
public Expression Add(Expression expression)
Parameters
expression Expression
Returns

Expression

No documentation is available.

Add<TCodeObject>(TCodeObject)

StatementCollection.cs
public new TCodeObject Add<TCodeObject>(TCodeObject item) where TCodeObject : Statement
Type parameters
TCodeObject
Parameters
item TCodeObject
Returns

TCodeObject

No documentation is available.

Operators

NameDescription
implicit operator StatementCollection(Expression)
implicit operator StatementCollection(Statement)

op_Implicit overloads

implicit operator StatementCollection(Expression)

StatementCollection.cs
public static implicit operator StatementCollection(Expression codeExpression)
Parameters
codeExpression Expression
Returns

StatementCollection

No documentation is available.

implicit operator StatementCollection(Statement)

StatementCollection.cs
public static implicit operator StatementCollection(Statement codeStatement)
Parameters
codeStatement Statement
Returns

StatementCollection

No documentation is available.