Open sandboxFocus

Method CreateLiteral

CreateLiteral(params object[])

Creates a literal SwitchStatementLabel by giving the literals as intrinsic values (string, int, ...).

Declaration
public static SwitchStatementLabel CreateLiteral(params object[] values)
Parameters
Type Name Description
object[] values
Returns
Type Description
SwitchStatementLabel

CreateLiteral(params TypedConstant[])

Creates a literal SwitchStatementLabel by giving the literals as TypedConstant values.

Declaration
public static SwitchStatementLabel CreateLiteral(params TypedConstant[] values)
Parameters
Type Name Description
TypedConstant[] values
Returns
Type Description
SwitchStatementLabel

CreateLiteral(IReadOnlyList<TypedConstant>)

Creates a literal SwitchStatementLabel by giving the literals as TypedConstant values.

Declaration
public static SwitchStatementLabel CreateLiteral(IReadOnlyList<TypedConstant> values)
Parameters
Type Name Description
IReadOnlyList<TypedConstant> values
Returns
Type Description
SwitchStatementLabel