src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Bind a constant to the CIL instructions.
/// </summary>
/// <param name="name">The name of the constant.</param>
/// <param name="value">The value of the constant.</param>
/// <param name="type">The type of the constant.</param>
/// <returns>Return the ConstantBinding created with the given values.</returns>
Bind a constant to the CIL instructions.
Bind a constant to the CIL instructions .
public ConstantBinding BindConstant(string name, object value, Type type) {
            if (currentScope == null)
                throw new Exception("Scope must be opened before constants can be bound.");
            return currentScope.AddConstantBinding(name, value, type);
        }
public ConstantBinding BindConstant ( string name , object value , Type type ) { if ( currentScope == null ) throw new Exception ( " " ) ; return currentScope . AddConstantBinding ( name , value , type ) ; }
Bind a constant to the CIL instructions.
Bind a constant to the CIL instructions .
Return the ConstantBinding created with the given values.
Return the ConstantBinding created with the given values .
name
string
The name of the constant.
The name of the constant .
value
object
The value of the constant.
The value of the constant .
type
Type
The type of the constant.
The type of the constant .