System.Diagnostics.SymbolStore.SymMethod.GetParameters C# (CSharp) Méthode

GetParameters() public méthode

public GetParameters ( ) : ISymbolVariable[]
Résultat ISymbolVariable[]
        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;
        }