src/sys/dotnet/perwapi/PERWAPI.cs
/// <summary>
/// Bind a local to the CIL instructions.
/// </summary>
/// <param name="name">The name of the local variable..</param>
/// <param name="index">The index of the local variable.</param>
/// <returns>The LocalBinding object created with the given values.</returns>
Bind a local to the CIL instructions.
Bind a local to the CIL instructions .
public LocalBinding BindLocal(string name, int index) {
            if (currentScope == null)
                throw new Exception("Scope must be opened before locals can be bound.");
            return currentScope.AddLocalBinding(name, index);
        }
public LocalBinding BindLocal ( string name , int index ) { if ( currentScope == null ) throw new Exception ( " " ) ; return currentScope . AddLocalBinding ( name , index ) ; }
Bind a local to the CIL instructions.
Bind a local to the CIL instructions .
The LocalBinding object created with the given values.
The LocalBinding object created with the given values .
name
string
The name of the local variable
The name of the local variable
index
int
The index of the local variable.
The index of the local variable .