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 name of the specified method signature. ///</summary> ///<param name="index">[in] The index of the method whose name is to be returned.</param> ///<returns> The name of the specified method, or null.</returns> public override string GetName(int index) { return(_info.GetName(index)); }