Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3edad62

Browse files
committed
added a documentation comment for MethodBinder.TryConvertArguments
1 parent 1dadc8a commit 3edad62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/runtime/methodbinder.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,18 @@ internal Binding Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, Meth
349349
return null;
350350
}
351351

352+
/// <summary>
353+
/// Attempts to convert Python argument tuple into an array of managed objects,
354+
/// that can be passed to a method.
355+
/// </summary>
356+
/// <param name="pi">Information about expected parameters</param>
357+
/// <param name="paramsArray"><c>true</c>, if the last parameter is a params array.</param>
358+
/// <param name="args">A pointer to the Python argument tuple</param>
359+
/// <param name="pyArgCount">Number of arguments, passed by Python</param>
360+
/// <param name="defaultArgList">A list of default values for omitted parameters</param>
361+
/// <param name="needsResolution"><c>true</c>, if overloading resolution is required</param>
362+
/// <param name="outs">Returns number of output parameters</param>
363+
/// <returns>An array of .NET arguments, that can be passed to a method.</returns>
352364
static object[] TryConvertArguments(ParameterInfo[] pi, bool paramsArray,
353365
IntPtr args, int pyArgCount,
354366
ArrayList defaultArgList,

0 commit comments

Comments
 (0)