コード例 #1
0
 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()
         });
     }
 }
コード例 #2
0
 ///<summary>
 /// Gets the description of the specified method signature.
 ///</summary>
 ///<param name="index">[in] An index into the internal list
 /// to the desired method signature.</param>
 ///<returns> The description of the specified method signature,
 /// or null if the method signature does not exist.</returns>
 public override string GetDescription(int index)
 {
     return(_info.GetDescription(index));
 }