Metalama//API Documentation/Aspect API/Metalama.​Framework.​Code.​Syntax­Builders/Syntax­Builder/Append­Literal
Open sandboxFocus

Method AppendLiteral

AppendLiteral(Int32)

Appends a literal of type Int32 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(int value)
Parameters
Type Name Description
Int32 value

AppendLiteral(UInt32, Boolean)

Appends a literal of type UInt32 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(uint value, bool stronglyTyped = false)
Parameters
Type Name Description
UInt32 value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Int16, Boolean)

Appends a literal of type Int16 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(short value, bool stronglyTyped = false)
Parameters
Type Name Description
Int16 value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(UInt16, Boolean)

Appends a literal of type UInt16 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(ushort value, bool stronglyTyped = false)
Parameters
Type Name Description
UInt16 value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Int64, Boolean)

Appends a literal of type Int64 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(long value, bool stronglyTyped = false)
Parameters
Type Name Description
Int64 value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(UInt64, Boolean)

Appends a literal of type UInt64 to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(ulong value, bool stronglyTyped = false)
Parameters
Type Name Description
UInt64 value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Byte, Boolean)

Appends a literal of type Byte to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(byte value, bool stronglyTyped = false)
Parameters
Type Name Description
Byte value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(SByte, Boolean)

Appends a literal of type SByte to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(sbyte value, bool stronglyTyped = false)
Parameters
Type Name Description
SByte value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Double, Boolean)

Appends a literal of type Double to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(double value, bool stronglyTyped = false)
Parameters
Type Name Description
Double value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Single, Boolean)

Appends a literal of type Single to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(float value, bool stronglyTyped = false)
Parameters
Type Name Description
Single value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(Decimal, Boolean)

Appends a literal of type Decimal to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(Decimal value, bool stronglyTyped = false)
Parameters
Type Name Description
Decimal value

The literal value.

Boolean stronglyTyped

A value indicating if the literal should be qualified to remove any type ambiguity, for instance if the literal can only represent an Int32.

AppendLiteral(String, Boolean)

Appends a literal of type String to the Metalama.Framework.Code.SyntaxBuilders.SyntaxBuilder.StringBuilder.

Declaration
public void AppendLiteral(string value, bool stronglyTyped = false)
Parameters
Type Name Description
String value

The literal value.

Boolean stronglyTyped

A value indicating if the null value should be qualified as (string?) null.