43 references to VarArgs
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1641bool isVarArg = associatedInfo is MethodBase mb && (mb.CallingConvention & CallingConventions.VarArgs) != 0;
System.Linq.Expressions (3)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
419if (mi.CallingConvention == CallingConventions.VarArgs) 453if (method.CallingConvention == CallingConventions.VarArgs)
System\Linq\Expressions\IndexExpression.cs (1)
463if ((method.CallingConvention & CallingConventions.VarArgs) != 0)
System.Private.CoreLib (29)
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (3)
117if ((candidates[i]!.CallingConvention & CallingConventions.VarArgs) == 0) 353if ((candidates[0]!.CallingConvention & CallingConventions.VarArgs) == 0) 438if ((bestMatch.CallingConvention & CallingConventions.VarArgs) == 0)
src\libraries\System.Private.CoreLib\src\System\Reflection\CallingConventions.cs (1)
14Any = Standard | VarArgs,
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (2)
119if ((callingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeConstructorInfo.cs (4)
22|| (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs // Managed varargs 87CheckCanCreateInstance(DeclaringType!, (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs);
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs (4)
22|| (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs // Managed varargs 69else if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\System\Reflection\Emit\DynamicILGenerator.cs (2)
179if ((callingConvention & CallingConventions.VarArgs) == 0) 402if (optionalParameterTypes != null && (methodInfo.CallingConvention & CallingConventions.VarArgs) == 0)
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
119if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
520if ((callingConvention & CallingConventions.VarArgs) == 0)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
322if ((method.CallingConvention & CallingConventions.VarArgs) == 0) 1101if (((method.CallingConvention & CallingConventions.VarArgs) == 0) &&
src\System\Reflection\Emit\SignatureHelper.cs (2)
59if ((callingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\System\RuntimeType.CoreCLR.cs (6)
2294if ((callConv & CallingConventions.VarArgs) != 0 && 2295(methodBase.CallingConvention & CallingConventions.VarArgs) == 0) 2323if ((methodBase.CallingConvention & CallingConventions.VarArgs) == 0) 2331Debug.Assert((callConv & CallingConventions.VarArgs) != 0); 3949Debug.Assert((invokeMethod.CallingConvention & CallingConventions.VarArgs) == 3950CallingConventions.VarArgs);
System.Reflection.Context (2)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (2)
155if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
System.Reflection.Emit (5)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
688if ((callingConvention & CallingConventions.VarArgs) == 0)
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
810if ((callingConventions & CallingConventions.VarArgs) != 0) 1185if ((method.CallingConvention & CallingConventions.VarArgs) == 0)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
696if ((callConv & CallingConventions.VarArgs) != 0 && (method.CallingConvention & CallingConventions.VarArgs) == 0)
System.Reflection.MetadataLoadContext (3)
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (2)
31if ((callConv & CallingConventions.VarArgs) != 0 && (methodBase.CallingConvention & CallingConventions.VarArgs) == 0)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
56result = CallingConventions.VarArgs;