System.Dynamic.CallInfo.CallInfo C# (CSharp) Method

CallInfo() public method

Creates a new CallInfo that represents arguments in the dynamic binding process.
public CallInfo ( int argCount, IEnumerable argNames ) : System.Collections.Generic
argCount int The number of arguments.
argNames IEnumerable The argument names.
return System.Collections.Generic
        public CallInfo(int argCount, IEnumerable<string> argNames)
        {
            ContractUtils.RequiresNotNull(argNames, nameof(argNames));

            var argNameCol = argNames.ToReadOnly();

            if (argCount < argNameCol.Count) throw System.Linq.Expressions.Error.ArgCntMustBeGreaterThanNameCnt();
            ContractUtils.RequiresNotNullItems(argNameCol, nameof(argNames));

            ArgumentCount = argCount;
            ArgumentNames = argNameCol;
        }

Same methods

CallInfo::CallInfo ( int argCount ) : System.Collections.Generic