345 references to CallingConventions
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\External\Extensions.cs (2)
19public static MethodInfo GetMethod(this Type type, String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 26return GetMethod(type, name, bindingAttr, binder, CallingConventions.Standard, types, modifiers);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (3)
151CallingConventions.HasThis, 490CallingConventions.HasThis, 509CallingConventions.HasThis,
illink (3)
ILLink.RoslynAnalyzer (3)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
80/// <item><see cref="System.Type.GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder?, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item> 96/// <item><see cref="System.Type.GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item> 100/// <item><see cref="System.Type.GetMethod(string, int, System.Reflection.BindingFlags, System.Reflection.Binder?, System.Reflection.CallingConventions, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
Microsoft.AspNetCore.SignalR.Core (2)
Internal\TypedClientBuilder.cs (2)
96var ctor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, ParameterTypes); 241var method = type.DefineMethod(nameof(Build), MethodAttributes.Public | MethodAttributes.Static, CallingConventions.Standard, typeof(T), ParameterTypes);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
TestUtilities\ErrorLoggerEngine.cs (2)
28_formatErrorMethod = formattingClass.GetMethod("FormatEventMessage", BindingFlags.Static | BindingFlags.NonPublic, null, CallingConventions.Any, 30_formatWarningMethod = formattingClass.GetMethod("FormatEventMessage", BindingFlags.Static | BindingFlags.NonPublic, null, CallingConventions.Any,
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
Debugger\MemberInfo\ConstructorInfoImpl.cs (1)
35public override System.Reflection.CallingConventions CallingConvention
Debugger\MemberInfo\MethodInfoImpl.cs (1)
31public override System.Reflection.CallingConventions CallingConvention
Debugger\MemberInfo\TypeImpl.cs (2)
378protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 383protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1641bool isVarArg = associatedInfo is MethodBase mb && (mb.CallingConvention & CallingConventions.VarArgs) != 0;
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
91callingConvention: CallingConventions.Standard,
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
419[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CallingConventions))]
netstandard (1)
netstandard.cs (1)
1386[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CallingConventions))]
System.ComponentModel.Composition (3)
Microsoft\Internal\GenerationServices.cs (1)
45CallingConventions.Standard,
System\ComponentModel\Composition\MetadataViewGenerator.cs (2)
195ConstructorBuilder proxyCtor = proxyTypeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, CtorArgumentTypes); 319CallingConventions.HasThis,
System.Configuration.ConfigurationManager (1)
System\Configuration\TypeUtil.cs (1)
148ConstructorInfo ctor = type.GetConstructor(BindingFlags, null, CallingConventions.HasThis, Type.EmptyTypes,
System.Linq.Expressions (4)
System\Linq\Expressions\Compiler\DelegateHelpers.cs (1)
126builder.DefineConstructor(ctorAttributes, CallingConventions.Standard, delegateCtorSignature).SetImplementationFlags(implAttributes);
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 (184)
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\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
58public override CallingConventions CallingConvention => _ctor.CallingConvention;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (11)
35CallingConventions.Standard, 52CallingConventions.Standard, 71CallingConventions.Standard, 91CallingConventions.Standard, 103CallingConventions callingConvention, 132CallingConventions.Standard, 152CallingConventions.Standard, 164CallingConventions callingConvention, 215CallingConventions callingConvention, 227if (attributes != (MethodAttributes.Static | MethodAttributes.Public) || callingConvention != CallingConventions.Standard) 328public override CallingConventions CallingConvention => _callingConvention;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
42public abstract void EmitCalli(OpCode opcode, CallingConventions callingConvention,
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
62public override CallingConventions CallingConvention => _method.CallingConvention;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
70public override CallingConventions CallingConvention => _method.CallingConvention;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (9)
71=> DefineGlobalMethod(name, attributes, CallingConventions.Standard, returnType, null, null, parameterTypes, null, null); 73public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, 77public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, 88protected abstract MethodBuilder DefineGlobalMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 99MethodAttributes attributes, CallingConventions callingConvention, 106MethodAttributes attributes, CallingConventions callingConvention, 113MethodAttributes attributes, CallingConventions callingConvention, 158public MethodInfo GetArrayMethod(Type arrayClass, string methodName, CallingConventions callingConvention, 168CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (2)
372CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 385CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (16)
47public ConstructorBuilder DefineConstructor(MethodAttributes attributes, CallingConventions callingConvention, Type[]? parameterTypes) 50public ConstructorBuilder DefineConstructor(MethodAttributes attributes, CallingConventions callingConvention, 54protected abstract ConstructorBuilder DefineConstructorCore(MethodAttributes attributes, CallingConventions callingConvention, 107=> DefineMethod(name, attributes, CallingConventions.Standard, null, null); 109public MethodBuilder DefineMethod(string name, MethodAttributes attributes, CallingConventions callingConvention) 112public MethodBuilder DefineMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, 117=> DefineMethod(name, attributes, CallingConventions.Standard, returnType, parameterTypes); 119public MethodBuilder DefineMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, 138protected abstract MethodBuilder DefineMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 191CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, 198CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, 206CallingConventions callingConvention, 223CallingConventions callingConvention, 232CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes) 242public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention, 253protected abstract PropertyBuilder DefinePropertyCore(string name, PropertyAttributes attributes, CallingConventions callingConvention,
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (2)
164protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); } 170protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); }
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (5)
27public virtual CallingConventions CallingConvention => CallingConventions.Standard; 91internal static void AppendParameters(ref ValueStringBuilder sbParamList, Type[] parameterTypes, CallingConventions callingConvention) 119if ((callingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (2)
102CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 109CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (4)
43return GetMethodImpl(name, DefaultLookup, null, CallingConventions.Any, null, null); 47public MethodInfo? GetMethod(string name, Type[] types) => GetMethod(name, DefaultLookup, null, CallingConventions.Any, types, null); 49public MethodInfo? GetMethod(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 62protected virtual MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw NotImplemented.ByDesign; }
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)
23|| (CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs // Managed varargs 73else if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (3)
143protected sealed override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 146protected sealed override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 182protected sealed override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (2)
64CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 74CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
600if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt])) 652if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt]))
src\libraries\System.Private.CoreLib\src\System\Type.cs (11)
156get => GetConstructorImpl(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, null, CallingConventions.Any, [], null); 184public ConstructorInfo? GetConstructor(BindingFlags bindingAttr, Binder? binder, Type[] types, ParameterModifier[]? modifiers) => GetConstructor(bindingAttr, binder, CallingConventions.Any, types, modifiers); 187public ConstructorInfo? GetConstructor(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 199protected abstract ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers); 302return GetMethodImpl(name, bindingAttr, null, CallingConventions.Any, null, null); 330public MethodInfo? GetMethod(string name, BindingFlags bindingAttr, Binder? binder, Type[] types, ParameterModifier[]? modifiers) => GetMethod(name, bindingAttr, binder, CallingConventions.Any, types, modifiers); 333public MethodInfo? GetMethod(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 346protected abstract MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers); 374public MethodInfo? GetMethod(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, Type[] types, ParameterModifier[]? modifiers) => GetMethod(name, genericParameterCount, bindingAttr, binder, CallingConventions.Any, types, modifiers); 377public MethodInfo? GetMethod(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 390protected virtual MethodInfo? GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
src\System\Reflection\Emit\CustomAttributeBuilder.cs (2)
77if ((con.CallingConvention & CallingConventions.Standard) != CallingConventions.Standard)
src\System\Reflection\Emit\DynamicILGenerator.cs (7)
172CallingConventions callingConvention, 179if ((callingConvention & CallingConventions.VarArgs) == 0) 206if ((callingConvention & CallingConventions.HasThis) == CallingConventions.HasThis && 207(callingConvention & CallingConventions.ExplicitThis) == 0) 418if (optionalParameterTypes != null && (methodInfo.CallingConvention & CallingConventions.VarArgs) == 0) 472CallingConventions call,
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (3)
31private CallingConventions _callingConvention; 119if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (5)
16internal RuntimeConstructorBuilder(string name, MethodAttributes attributes, CallingConventions callingConvention, 29internal RuntimeConstructorBuilder(string name, MethodAttributes attributes, CallingConventions callingConvention, 144public override CallingConventions CallingConvention 149return CallingConventions.HasThis; 151return CallingConventions.Standard;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (2)
93CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 107CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (2)
103protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); } 109protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeILGenerator.cs (6)
175CallingConventions call, 514public override void EmitCalli(OpCode opcode, CallingConventions callingConvention, 520if ((callingConvention & CallingConventions.VarArgs) == 0) 549if ((callingConvention & CallingConventions.HasThis) == CallingConventions.HasThis && 550(callingConvention & CallingConventions.ExplicitThis) == 0)
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (4)
40private readonly CallingConventions m_callingConvention; 59internal RuntimeMethodBuilder(string name, MethodAttributes attributes, CallingConventions callingConvention, 87callingConvention |= CallingConventions.HasThis; 438public override CallingConventions CallingConvention => m_callingConvention;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (10)
322if ((method.CallingConvention & CallingConventions.VarArgs) == 0) 372internal SignatureHelper GetMemberRefSignature(CallingConventions call, Type? returnType, 723CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 776MethodAttributes attributes, CallingConventions callingConvention, Type? returnType, 791protected override MethodBuilder DefineGlobalMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 803private MethodBuilder DefineGlobalMethodNoLock(string name, MethodAttributes attributes, CallingConventions callingConvention, 1101if (((method.CallingConvention & CallingConventions.VarArgs) == 0) && 1122internal int GetArrayMethodToken(Type arrayClass, string methodName, CallingConventions callingConvention, 1131private int GetArrayMethodTokenNoLock(Type arrayClass, string methodName, CallingConventions callingConvention, 1151protected override MethodInfo GetArrayMethodCore(Type arrayClass, string methodName, CallingConventions callingConvention,
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (9)
657CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 676CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 1080protected override MethodBuilder DefineMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 1112CallingConventions callingConvention, 1207ConstructorInfo.TypeConstructorName, attr, CallingConventions.Standard, null, m_module, this); 1268constBuilder = (RuntimeConstructorBuilder)DefineConstructor(attributes, CallingConventions.Standard, null); 1280protected override ConstructorBuilder DefineConstructorCore(MethodAttributes attributes, CallingConventions callingConvention, 1296private ConstructorBuilder DefineConstructorNoLock(MethodAttributes attributes, CallingConventions callingConvention, 1384protected override PropertyBuilder DefinePropertyCore(string name, PropertyAttributes attributes, CallingConventions callingConvention,
src\System\Reflection\Emit\SignatureHelper.cs (13)
21return GetMethodSigHelper(mod, CallingConventions.Standard, returnType, null, null, parameterTypes, null, null); 24public static SignatureHelper GetMethodSigHelper(Module? mod, CallingConventions callingConvention, Type? returnType) 39Module? scope, CallingConventions callingConvention, 48Module? scope, CallingConventions callingConvention, int cGenericParam, 59if ((callingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs) 67const byte Mask = (byte)(CallingConventions.HasThis | CallingConventions.ExplicitThis); 160public static SignatureHelper GetMethodSigHelper(CallingConventions callingConvention, Type? returnType) 189return GetPropertySigHelper(mod, (CallingConventions)0, returnType, requiredReturnTypeCustomModifiers, optionalReturnTypeCustomModifiers, 192public static SignatureHelper GetPropertySigHelper(Module? mod, CallingConventions callingConvention, 202const byte Mask = (byte)(CallingConventions.HasThis | CallingConventions.ExplicitThis);
src\System\Reflection\Emit\SymbolMethod.cs (3)
14private readonly CallingConventions m_callingConvention; 22CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes) 94public override CallingConventions CallingConvention => m_callingConvention;
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
199public override CallingConventions CallingConvention => Signature.CallingConvention;
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
271public override CallingConventions CallingConvention => Signature.CallingConvention;
src\System\Reflection\RuntimeModule.cs (2)
323CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 330CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
src\System\RuntimeHandles.cs (3)
2078CallingConventions callingConvention) 2113internal CallingConventions CallingConvention => (CallingConventions)(_managedCallingConventionAndArgIteratorFlags & 0xff);
src\System\RuntimeType.CoreCLR.cs (27)
2265RuntimeMethodInfo method, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2272RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2281MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2292if ((callConv & CallingConventions.Any) == 0) 2294if ((callConv & CallingConventions.VarArgs) != 0 && 2295(methodBase.CallingConvention & CallingConventions.VarArgs) == 0) 2298if ((callConv & CallingConventions.Standard) != 0 && 2299(methodBase.CallingConvention & CallingConventions.Standard) == 0) 2323if ((methodBase.CallingConvention & CallingConventions.VarArgs) == 0) 2331Debug.Assert((callConv & CallingConventions.VarArgs) != 0); 2526string? name, int genericParameterCount, BindingFlags bindingAttr, CallingConventions callConv, 2551string? name, BindingFlags bindingAttr, CallingConventions callConv, 2666return GetMethodCandidates(null, GenericParameterCountAny, bindingAttr, CallingConventions.Any, null, false).ToArray(); 2672return GetConstructorCandidates(null, bindingAttr, CallingConventions.Any, null, false).ToArray(); 2709ListBuilder<MethodInfo> methods = GetMethodCandidates(null, GenericParameterCountAny, bindingAttr, CallingConventions.Any, null, false); 2710ListBuilder<ConstructorInfo> constructors = GetConstructorCandidates(null, bindingAttr, CallingConventions.Any, null, false); 2822string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConv, 2830string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConv, 2837string? name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConv, 2873BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, 2876ListBuilder<ConstructorInfo> candidates = GetConstructorCandidates(null, bindingAttr, CallingConventions.Any, types, false); 3087methods = GetMethodCandidates(name, GenericParameterCountAny, bindingAttr, CallingConventions.Any, null, true); 3096constructors = GetConstructorCandidates(name, bindingAttr, CallingConventions.Any, null, true); 3914ListBuilder<ConstructorInfo> candidates = GetConstructorCandidates(null, bindingAttr, CallingConventions.Any, null, false); 3930if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr, CallingConventions.Any, argsType)) 3969Debug.Assert((invokeMethod.CallingConvention & CallingConventions.VarArgs) == 3970CallingConventions.VarArgs);
System.Private.Xml (2)
System\Xml\Serialization\XmlSerializationILGen.cs (1)
156CallingConventions.HasThis,
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
956CallingConventions.HasThis,
System.Reflection.Context (14)
System\Reflection\Context\Custom\CustomType.cs (1)
182protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
24public override CallingConventions CallingConvention
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
26public override CallingConventions CallingConvention
System\Reflection\Context\Delegation\DelegatingModule.cs (1)
94protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Context\Delegation\DelegatingType.cs (2)
303protected override ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 353protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Context\Projection\ProjectingModule.cs (1)
58protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Context\Projection\ProjectingType.cs (2)
182protected override ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 260protected override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (5)
21public sealed override CallingConventions CallingConvention 23get { return CallingConventions.HasThis | CallingConventions.Standard; } 155if ((CallingConvention & CallingConventions.VarArgs) == CallingConventions.VarArgs)
System.Reflection.DispatchProxy (5)
src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (3)
34CallingConventions.HasThis, 53CallingConventions.HasThis, 60CallingConventions.HasThis,
System\Reflection\DispatchProxyGenerator.cs (2)
286ConstructorBuilder cb = _tb.DefineConstructor(MethodAttributes.Public, CallingConventions.HasThis, args); 427MethodBuilder mdb = _tb.DefineMethod(mi.Name, attributes, CallingConventions.Standard,
System.Reflection.Emit (56)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
62public override CallingConventions CallingConvention => _method.CallingConvention;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (2)
372CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) 385CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System\Reflection\Emit\ArrayMethod.cs (3)
14private readonly CallingConventions _callingConvention; 22CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes) 66public override CallingConventions CallingConvention => _callingConvention;
System\Reflection\Emit\ConstructorBuilderImpl.cs (4)
13public ConstructorBuilderImpl(string name, MethodAttributes attributes, CallingConventions callingConvention, Type[]? parameterTypes, 51public override CallingConventions CallingConvention 57return CallingConventions.HasThis; 60return CallingConventions.Standard;
System\Reflection\Emit\EnumBuilderImpl.cs (2)
110CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(); 123CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (2)
103protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(); 107protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException();
System\Reflection\Emit\ILGeneratorImpl.cs (5)
683public override void EmitCalli(OpCode opcode, CallingConventions callingConvention, 688if ((callingConvention & CallingConventions.VarArgs) == 0) 704if ((callingConvention & CallingConventions.HasThis) == CallingConventions.HasThis && 705(callingConvention & CallingConventions.ExplicitThis) == 0)
System\Reflection\Emit\MethodBuilderImpl.cs (4)
20private readonly CallingConventions _callingConventions; 37internal MethodBuilderImpl(string name, MethodAttributes attributes, CallingConventions callingConventions, 50callingConventions |= CallingConventions.HasThis; 238public override CallingConventions CallingConvention => _callingConventions;
System\Reflection\Emit\ModuleBuilderImpl.cs (13)
804private static bool IsInstance(CallingConventions callingConvention) => 805callingConvention.HasFlag(CallingConventions.HasThis) || callingConvention.HasFlag(CallingConventions.ExplicitThis) ? true : false; 807internal static SignatureCallingConvention GetSignatureConvention(CallingConventions callingConventions) 811if ((callingConventions & CallingConventions.VarArgs) != 0) 817const byte Mask = (byte)(CallingConventions.HasThis | CallingConventions.ExplicitThis); 1199if ((method.CallingConvention & CallingConventions.VarArgs) == 0) 1255protected override MethodBuilder DefineGlobalMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 1290CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet) 1325CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes) 1348CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 1367internal int GetSignatureToken(CallingConventions callingConventions, Type? returnType, Type[]? parameterTypes, Type[]? optionalParameterTypes) =>
System\Reflection\Emit\PropertyBuilderImpl.cs (3)
13private readonly CallingConventions _callingConvention; 29internal PropertyBuilderImpl(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers, TypeBuilderImpl containingType) 46internal CallingConventions CallingConventions => _callingConvention;
System\Reflection\Emit\SignatureHelper.cs (1)
149PropertySignature(isInstanceProperty: property.CallingConventions.HasFlag(CallingConventions.HasThis)).
System\Reflection\Emit\TypeBuilderImpl.cs (16)
159protected override ConstructorBuilder DefineConstructorCore(MethodAttributes attributes, CallingConventions callingConvention, 219ConstructorBuilderImpl constBuilder = (ConstructorBuilderImpl)DefineConstructorCore(attributes, CallingConventions.Standard, null, null, null); 290protected override MethodBuilder DefineMethodCore(string name, MethodAttributes attributes, CallingConventions callingConvention, 368CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, 397protected override PropertyBuilder DefinePropertyCore(string name, PropertyAttributes attributes, CallingConventions callingConvention, 413return new ConstructorBuilderImpl(ConstructorInfo.TypeConstructorName, attr, CallingConventions.Standard, null, null, null, _module, this); 657CallingConventions callConvention, Type[] types, ParameterModifier[]? _) 687private static bool MatchesTheFilter(MethodBuilderImpl method, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 694if ((callConv & CallingConventions.Any) == 0) 696if ((callConv & CallingConventions.VarArgs) != 0 && (method.CallingConvention & CallingConventions.VarArgs) == 0) 701if ((callConv & CallingConventions.Standard) != 0 && (method.CallingConvention & CallingConventions.Standard) == 0) 756if (MatchesTheFilter(con._methodBuilder, GetBindingFlags(con._methodBuilder), bindingAttr, CallingConventions.Any, con._methodBuilder.ParameterTypes)) 798if (!method.IsConstructor && MatchesTheFilter(method, GetBindingFlags(method), bindingAttr, CallingConventions.Any, method.ParameterTypes)) 814CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System.Reflection.MetadataLoadContext (42)
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (6)
23public static bool QualifiesBasedOnParameterCount(this MethodBase methodBase, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes) 29if ((callConv & CallingConventions.Any) == 0) 31if ((callConv & CallingConventions.VarArgs) != 0 && (methodBase.CallingConvention & CallingConventions.VarArgs) == 0) 34if ((callConv & CallingConventions.Standard) != 0 && (methodBase.CallingConvention & CallingConventions.Standard) == 0)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (5)
49public sealed override CallingConventions CallingConvention => (_lazyCallingConventions == CallingConventionsSentinel) ? (_lazyCallingConventions = ComputeCallingConvention()) : _lazyCallingConventions; 50protected abstract CallingConventions ComputeCallingConvention(); 51private const CallingConventions CallingConventionsSentinel = (CallingConventions)(-1); 52private volatile CallingConventions _lazyCallingConventions = CallingConventionsSentinel;
System\Reflection\TypeLoading\Constructors\RoDefinitionConstructor.cs (1)
32protected sealed override CallingConventions ComputeCallingConvention() => _decoder.ComputeCallingConvention();
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (3)
36protected sealed override CallingConventions ComputeCallingConvention() => CallingConventions.Standard | CallingConventions.HasThis;
System\Reflection\TypeLoading\General\Sentinels.cs (1)
43protected sealed override CallingConventions ComputeCallingConvention() => throw null!;
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (6)
49public CallingConventions ComputeCallingConvention() 54CallingConventions result; 56result = CallingConventions.VarArgs; 58result = CallingConventions.Standard; 61result |= CallingConventions.HasThis; 64result |= CallingConventions.ExplicitThis;
System\Reflection\TypeLoading\MethodBase\IMethodDecoder.cs (1)
19CallingConventions ComputeCallingConvention();
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
37protected sealed override CallingConventions ComputeCallingConvention() => _genericMethodDefinition.CallingConvention;
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
71protected sealed override CallingConventions ComputeCallingConvention() => _decoder.ComputeCallingConvention();
System\Reflection\TypeLoading\Methods\RoMethod.cs (5)
57public sealed override CallingConventions CallingConvention => (_lazyCallingConventions == CallingConventionsSentinel) ? (_lazyCallingConventions = ComputeCallingConvention()) : _lazyCallingConventions; 58protected abstract CallingConventions ComputeCallingConvention(); 59private const CallingConventions CallingConventionsSentinel = (CallingConventions)(-1); 60private volatile CallingConventions _lazyCallingConventions = CallingConventionsSentinel;
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (3)
39protected sealed override CallingConventions ComputeCallingConvention() => CallingConventions.Standard | CallingConventions.HasThis;
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
115protected sealed override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => GetModuleType().InternalGetMethodImpl(name, bindingAttr, binder, callConvention, types, modifiers);
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
73protected abstract override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers);
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (1)
49protected sealed override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => null;
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (5)
14protected sealed override ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 54protected sealed override MethodInfo? GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 59protected sealed override MethodInfo? GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 64private MethodInfo? GetMethodImplCommon(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) 74Debug.Assert(callConvention == CallingConventions.Any);
System\Reflection\TypeLoading\Types\RoType.cs (1)
384internal MethodInfo? InternalGetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers)
System.Reflection.Primitives (1)
artifacts\obj\System.Reflection.Primitives\Debug\net11.0\System.Reflection.Primitives.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CallingConventions))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
452[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.CallingConventions))]
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
98MethodBuilder builder = implementation.DefineMethod(method.Name, MethodAttributes.Private | MethodAttributes.Final | MethodAttributes.HideBySig | MethodAttributes.Virtual, CallingConventions.HasThis, method.ReturnType, returnTypeRequiredModifiers, returnTypeOptionalModifiers, parameterTypes, parameterRequiredModifiers, parameterOptionalModifiers); 146CallingConventions.Standard,
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (2)
76ConstructorBuilder defaultCtorBuilder = regexTypeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, Type.EmptyTypes); 85_ilg = regexTypeBuilder.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[] { typeof(TimeSpan) }).GetILGenerator();
System\Text\RegularExpressions\RegexLWCGCompiler.cs (2)
77const CallingConventions Conventions = CallingConventions.Standard;
System.Windows.Forms.Tests (2)
System\Windows\Forms\ListBindingHelperTests.cs (2)
917protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 922protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
System.Xaml.Tests (1)
Common\CustomType.cs (1)
30protected override ConstructorInfo? GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers)