MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Syntax­BuildersSyntax­BuilderAppend­Literal
Open sandboxFocus

SyntaxBuilder.AppendLiteral Method

AppendLiteral(int)

Appends a literal of type int to the StringBuilder.

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

AppendLiteral(uint, bool)

Appends a literal of type uint to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(short, bool)

Appends a literal of type short to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(ushort, bool)

Appends a literal of type ushort to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(long, bool)

Appends a literal of type long to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(ulong, bool)

Appends a literal of type ulong to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(byte, bool)

Appends a literal of type byte to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(sbyte, bool)

Appends a literal of type sbyte to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(double, bool)

Appends a literal of type double to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(float, bool)

Appends a literal of type float to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(decimal, bool)

Appends a literal of type decimal to the StringBuilder.

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

The literal value.

bool stronglyTyped

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

AppendLiteral(string?, bool)

Appends a literal of type string to the StringBuilder.

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

The literal value.

bool stronglyTyped

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