public ISymbolVariable[] GetParameters() { int hr; int cVariables; uint i; SymVariable[] Variables; IntPtr[] VariablePointers; COMException Exception; hr = SymMethod_GetParameters(m_Method, 0, out cVariables, null); if (hr < 0) { Exception = new COMException("Call to GetParameters failed.", hr); throw Exception; } VariablePointers = new IntPtr[cVariables]; hr = SymMethod_GetParameters(m_Method, cVariables, out cVariables, VariablePointers); if (hr < 0) { Exception = new COMException("Call to GetParameters failed.", hr); throw Exception; } Variables = new SymVariable[cVariables]; for (i = 0; i < cVariables; i++) { Variables[i] = new SymVariable(VariablePointers[i]); } return Variables; }
public ISymbolVariable[] GetLocals() { COMException Exception; int hr; uint i; int cLocals; IntPtr[] LocalPointers; SymVariable[] Locals; hr = SymScope_GetLocals(m_Scope, 0, out cLocals, null); if (hr < 0) { Exception = new COMException("Call to GetLocals failed.", hr); throw Exception; } LocalPointers = new IntPtr[cLocals]; Locals = new SymVariable[cLocals]; hr = SymScope_GetLocals(m_Scope, cLocals, out cLocals, LocalPointers); if (hr < 0) { Exception = new COMException("Call to GetLocals failed.", hr); throw Exception; } for (i = 0; i < cLocals; i++) { Locals[i] = new SymVariable(LocalPointers[i]); } return Locals; }
public ISymbolVariable[] GetVariables() { COMException Exception; int hr; IntPtr[] VariablePointers; SymVariable[] Variables; int cVars; uint i; hr = SymNamespace_GetVariables(m_Namespace, 0, out cVars, null); if (hr < 0) { Exception = new COMException("Call to GetVariables failed.", hr); throw Exception; } Variables = new SymVariable[cVars]; VariablePointers = new IntPtr[cVars]; hr = SymNamespace_GetVariables(m_Namespace, cVars, out cVars, VariablePointers); if (hr < 0) { Exception = new COMException("Call to GetVariables failed.", hr); throw Exception; } for (i = 0; i < cVars; i++) { Variables[i] = new SymVariable(VariablePointers[i]); } return Variables; }
public ISymbolVariable[] GetVariables(SymbolToken parent) { COMException Exception; int hr; IntPtr[] VariablePointers; SymVariable[] Variables; int cVars; uint i; hr = SymReader_GetVariables(m_Reader, parent.GetToken(), 0, out cVars, null); if (hr < 0) { Exception = new COMException("Call to GetVariables failed.", hr); throw Exception; } Variables = new SymVariable[cVars]; VariablePointers = new IntPtr[cVars]; hr = SymReader_GetVariables(m_Reader, parent.GetToken(), cVars, out cVars, VariablePointers); if (hr < 0) { Exception = new COMException("Call to GetVariables failed.", hr); throw Exception; } for (i = 0; i < cVars; i++) { Variables[i] = new SymVariable(VariablePointers[i]); } return Variables; }