public static IEnumerable <MethodInfo> GetMethods(MethodTipInfo info) { for (var i = 0; i < info.GetCount(); i++) { var name = info.GetName(i); var type = info.GetType(i); var description = info.GetDescription(i); var param = GetParameters(info, i); yield return(new MethodInfo { Name = name, Type = type, Description = description, Parameters = param.ToArray() }); } }
///<summary> /// Gets the return type of the specified method signature. ///</summary> ///<param name="index">[in] An index into the list of method signatures.</param> ///<returns> The return type of the specified method signature, or null.</returns> public override string GetType(int index) { return(_info.GetType(index)); }