Lezen in het Engels Bewerken

Share via


CallInfo Class

Definition

Describes arguments in the dynamic binding process.

C#
public sealed class CallInfo
Inheritance
CallInfo

Examples

SampleMethod(arg1, arg2, arg3, name1 = arg4, name2 = arg5, name3 = arg6) will correspond to ArgumentCount: 6 ArgumentNames: {"name1", "name2", "name3"}.

Remarks

ArgumentCount - all inclusive number of arguments.

ArgumentNames - names for those arguments that are named.

Argument names match to the argument values in left to right order and last name corresponds to the last argument.

Constructors

CallInfo(Int32, IEnumerable<String>)

Creates a new CallInfo that represents arguments in the dynamic binding process.

CallInfo(Int32, String[])

Creates a new PositionalArgumentInfo.

Properties

ArgumentCount

The number of arguments.

ArgumentNames

The argument names.

Methods

Equals(Object)

Determines whether the specified CallInfo instance is considered equal to the current.

GetHashCode()

Serves as a hash function for the current CallInfo.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Product Versies
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0