Class WriteLineExpression
Represents expression that writes some object into particular output.
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class WriteLineExpression : Expression
Properties
| Improve this Doc View SourceCanReduce
Always returns true because
this expression is
Declaration
public override bool CanReduce { get; }
Property Value
Type | Description |
---|---|
Boolean |
NodeType
Always returns
Declaration
public override ExpressionType NodeType { get; }
Property Value
Type | Description |
---|---|
ExpressionType |
Type
Always returns
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceDebug(Expression)
Creates an expression that writes the object using
Declaration
public static WriteLineExpression Debug(Expression value)
Parameters
Type | Name | Description |
---|---|---|
Expression | value | The value to be written into the stderr. |
Returns
Type | Description |
---|---|
WriteLineExpression | A new instance of WriteLineExpression. |
Error(Expression)
Creates an expression that writes the object into
Declaration
public static WriteLineExpression Error(Expression value)
Parameters
Type | Name | Description |
---|---|---|
Expression | value | The value to be written into the stderr. |
Returns
Type | Description |
---|---|
WriteLineExpression | A new instance of WriteLineExpression. |
Out(Expression)
Creates an expression that writes the object into
Declaration
public static WriteLineExpression Out(Expression value)
Parameters
Type | Name | Description |
---|---|---|
Expression | value | The value to be written into the stdout. |
Returns
Type | Description |
---|---|
WriteLineExpression | A new instance of WriteLineExpression. |
Reduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
Type | Description |
---|---|
Expression | Translated expression. |