BindLocal() public method

Bind a local to the current scope.
public BindLocal ( string name, int idx, uint token, int startOffset, int endOffset ) : void
name string The name of the variable.
idx int The index of the variable in the locals table.
token uint The symbol token for the given variable.
startOffset int The starting offset for the binding. Set to 0 to default to current scope.
endOffset int The ending offset for the binding. Set to 0 to default to current scope.
return void
コード例 #1
0
ファイル: PERWAPI.cs プロジェクト: nomit007/f4
        internal void WriteLocals(PDBWriter writer)
        {
            try {

             Local[] locals = _thisMeth.GetLocals();

             foreach (LocalBinding binding in _localBindings) {
                 writer.BindLocal(binding._name, binding._index, _thisMeth.locToken,0,0);
             }
             } catch (Exception e) {
             throw new Exception("Exception while writing debug info for: " +
                 this._thisMeth.NameString()+"\r\n"+e.ToString(),e);
             }
        }