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 | The literal values to match. |
Returns
| Type | Description |
|---|---|
| SwitchStatementLabel | A new 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 | The literal values to match. |
Returns
| Type | Description |
|---|---|
| SwitchStatementLabel | A new 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 | The literal values to match. |
Returns
| Type | Description |
|---|---|
| SwitchStatementLabel | A new SwitchStatementLabel. |