CompileTime<T>(T?)
Coerces an expression
to be interpreted as compile time. This is typically used
to coerce expressions that can be either run-time or compile-time, such as a literal. Since ambiguous expressions are
interpreted as run-time by default, this method allows to change that behavior.
Declaration
[CompileTime(true, null)]
public static T? CompileTime<T>(T? expression)
Parameters
Type | Name | Description |
---|---|---|
T | expression | An expression. |
Returns
Type | Description |
---|---|
T | Exactly |
Type Parameters
Name | Description |
---|---|
T |