public ISymbolVariable[] GetParameters() { uint numVars; method.GetParameters(0, out numVars, null); var unVars = new ISymUnmanagedVariable[numVars]; method.GetParameters((uint)unVars.Length, out numVars, unVars); var vars = new ISymbolVariable[numVars]; for (uint i = 0; i < numVars; i++) { vars[i] = new SymbolVariable(unVars[i]); } return(vars); }
public ISymbolVariable[] GetParameters() { int cVariables; uint i; unmanagedMethod.GetParameters(0, out cVariables, null); ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVariables]; unmanagedMethod.GetParameters(cVariables, out cVariables, unmanagedVariables); ISymbolVariable[] variables = new ISymbolVariable[cVariables]; for (i = 0; i < cVariables; i++) { variables[i] = new SymbolVariable(unmanagedVariables[i]); } return(variables); }
/// <summary> /// Gets the parameters of the method /// </summary> /// <returns>The method parameters</returns> public ISymbolVariable[] GetParameters() { int pNum; // Call GetParameters just to get pNum private_method.GetParameters(0, out pNum, null); ISymUnmanagedVariable[] unVars = new ISymUnmanagedVariable[pNum]; ISymbolVariable[] manVars = new ISymbolVariable[pNum]; // Now call again to get the real information private_method.GetParameters(pNum, out pNum, unVars); for (int i = 0; i < pNum; i++) { manVars[i] = new SymbolVariable(unVars[i]); } return(manVars); }
public ISymbolVariable[] GetParameters() { int varCount; HRESULT.ThrowOnFailure(_unmanaged.GetParameters(0, out varCount, null)); var unmanagedVars = new ISymUnmanagedVariable[varCount]; HRESULT.ThrowOnFailure(_unmanaged.GetParameters(unmanagedVars.Length, out varCount, unmanagedVars)); var variables = new ISymbolVariable[varCount]; for (int i = 0; i < varCount; i++) { variables[i] = new SymbolVariable(unmanagedVars[i]); } return(variables); }