public static IEnumerable <Info> GetParameters(MethodTipInfo info, int index) { for (var i = 0; i < info.GetParameterCount(index); i++) { var t = info.GetParameterInfo(index, i); yield return(new Info { Name = t.Field0, Type = t.Field1, Description = t.Field2 }); } }
///<summary> /// Gets the number of parameters on the specified method signature. ///</summary> ///<param name="index">[in] An index into the list of method signatures.</param> ///<returns> The number of parameters on the specified /// method signature, or -1.</returns> public override int GetParameterCount(int index) { return(_info.GetParameterCount(index)); }