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