215 references to CallingConventions
mscorlib (184)
system\defaultbinder.cs (3)
125
if ((candidates[i].CallingConvention &
CallingConventions
.VarArgs) == 0)
342
if ((candidates[0].CallingConvention &
CallingConventions
.VarArgs) == 0)
424
if ((candidates[currentMin].CallingConvention &
CallingConventions
.VarArgs) == 0)
system\reflection\cominterfaces.cs (5)
96
ConstructorInfo GetConstructor(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers);
105
MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers);
321
CallingConventions
CallingConvention { get; }
379
CallingConventions
CallingConvention { get; }
443
CallingConventions
CallingConvention { get; }
system\reflection\ConstructorInfo.cs (5)
225
((CallingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs) ||
528
public override
CallingConventions
CallingConvention
584
CheckCanCreateInstance(DeclaringType, (CallingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs);
system\reflection\emit\constructorbuilder.cs (5)
37
internal ConstructorBuilder(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
55
internal ConstructorBuilder(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
253
public override
CallingConventions
CallingConvention
258
return
CallingConventions
.HasThis;
260
return
CallingConventions
.Standard;
system\reflection\emit\customattributebuilder.cs (2)
129
if ((con.CallingConvention &
CallingConventions
.Standard) !=
CallingConventions
.Standard)
system\reflection\emit\dynamicilgenerator.cs (6)
235
CallingConventions
callingConvention,
243
if ((callingConvention &
CallingConventions
.VarArgs) == 0)
265
if ((callingConvention &
CallingConventions
.HasThis) ==
CallingConventions
.HasThis)
492
if (optionalParameterTypes != null && (methodInfo.CallingConvention &
CallingConventions
.VarArgs) == 0)
526
CallingConventions
call,
system\reflection\emit\dynamicmethod.cs (19)
87
CallingConventions
.Standard,
108
CallingConventions
.Standard,
132
CallingConventions
.Standard,
157
CallingConventions
.Standard,
175
CallingConventions
callingConvention,
208
CallingConventions
.Standard,
233
CallingConventions
.Standard,
251
CallingConventions
callingConvention,
272
static private void CheckConsistency(MethodAttributes attributes,
CallingConventions
callingConvention) {
281
if (callingConvention !=
CallingConventions
.Standard && callingConvention !=
CallingConventions
.VarArgs)
285
if (callingConvention ==
CallingConventions
.VarArgs)
346
CallingConventions
callingConvention,
617
public override
CallingConventions
CallingConvention { get { return m_dynMethod.CallingConvention; } }
715
if ((CallingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs)
859
CallingConventions
m_callingConvention;
866
internal RTDynamicMethod(DynamicMethod owner, String name, MethodAttributes attributes,
CallingConventions
callingConvention) {
904
public override
CallingConventions
CallingConvention {
system\reflection\emit\enumbuilder.cs (2)
137
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
150
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
system\reflection\emit\generictypeparameterbuilder.cs (2)
121
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
126
protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
system\reflection\emit\ilgenerator.cs (6)
229
internal virtual SignatureHelper GetMemberRefSignature(
CallingConventions
call, Type returnType,
236
private SignatureHelper GetMemberRefSignature(
CallingConventions
call, Type returnType,
518
public virtual void EmitCalli(OpCode opcode,
CallingConventions
callingConvention,
525
if ((callingConvention &
CallingConventions
.VarArgs) == 0)
551
if ((callingConvention &
CallingConventions
.HasThis) ==
CallingConventions
.HasThis)
system\reflection\emit\methodbuilder.cs (6)
53
private
CallingConventions
m_callingConvention;
72
internal MethodBuilder(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
78
internal MethodBuilder(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
89
private void Init(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
133
callingConvention = callingConvention |
CallingConventions
.HasThis;
592
public override
CallingConventions
CallingConvention
system\reflection\emit\methodbuilderinstantiation.cs (1)
71
public override
CallingConventions
CallingConvention { get { return m_method.CallingConvention; } }
system\reflection\emit\modulebuilder.cs (14)
676
if ((method.CallingConvention &
CallingConventions
.VarArgs) == 0)
765
internal SignatureHelper GetMemberRefSignature(
CallingConventions
call, Type returnType,
1092
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
1466
return DefineGlobalMethod(name, attributes,
CallingConventions
.Standard, returnType, parameterTypes);
1469
public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1477
public MethodBuilder DefineGlobalMethod(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1489
private MethodBuilder DefineGlobalMethodNoLock(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1523
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes,
1535
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv,
1551
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes, CallingConvention nativeCallConv,
2014
if (((method.CallingConvention &
CallingConventions
.VarArgs) == 0) &&
2036
public MethodToken GetArrayMethodToken(Type arrayClass, String methodName,
CallingConventions
callingConvention,
2046
private MethodToken GetArrayMethodTokenNoLock(Type arrayClass, String methodName,
CallingConventions
callingConvention,
2082
public MethodInfo GetArrayMethod(Type arrayClass, String methodName,
CallingConventions
callingConvention,
system\reflection\emit\signaturehelper.cs (14)
33
return GetMethodSigHelper(mod,
CallingConventions
.Standard, returnType, null, null, parameterTypes, null, null);
37
internal static SignatureHelper GetMethodSigHelper(Module mod,
CallingConventions
callingConvention, Type returnType, int cGenericParam)
43
public static SignatureHelper GetMethodSigHelper(Module mod,
CallingConventions
callingConvention, Type returnType)
59
Module scope,
CallingConventions
callingConvention,
69
Module scope,
CallingConventions
callingConvention, int cGenericParam,
83
if ((callingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs)
91
if ((callingConvention &
CallingConventions
.HasThis) ==
CallingConventions
.HasThis)
141
public static SignatureHelper GetMethodSigHelper(
CallingConventions
callingConvention, Type returnType)
170
return GetPropertySigHelper(mod, (
CallingConventions
)0, returnType, requiredReturnTypeCustomModifiers, optionalReturnTypeCustomModifiers,
174
public static SignatureHelper GetPropertySigHelper(Module mod,
CallingConventions
callingConvention,
187
if ((callingConvention &
CallingConventions
.HasThis) ==
CallingConventions
.HasThis)
system\reflection\emit\symbolmethod.cs (3)
23
private
CallingConventions
m_callingConvention;
33
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes)
118
public override
CallingConventions
CallingConvention
system\reflection\emit\symboltype.cs (2)
421
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
433
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
system\reflection\emit\typebuilder.cs (22)
737
String name, String dllName, String importName, MethodAttributes attributes,
CallingConventions
callingConvention,
760
String name, String dllName, String importName, MethodAttributes attributes,
CallingConventions
callingConvention,
1126
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
1146
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
1655
return DefineMethod(name, attributes,
CallingConventions
.Standard, returnType, parameterTypes);
1662
return DefineMethod(name, attributes,
CallingConventions
.Standard, null, null);
1665
public MethodBuilder DefineMethod(String name, MethodAttributes attributes,
CallingConventions
callingConvention)
1672
public MethodBuilder DefineMethod(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1680
public MethodBuilder DefineMethod(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1694
private MethodBuilder DefineMethodNoLock(String name, MethodAttributes attributes,
CallingConventions
callingConvention,
1772
ConstructorInfo.TypeConstructorName, attr,
CallingConventions
.Standard, null, m_module, this);
1832
constBuilder = DefineConstructor(attributes,
CallingConventions
.Standard, null);
1846
public ConstructorBuilder DefineConstructor(MethodAttributes attributes,
CallingConventions
callingConvention, Type[] parameterTypes)
1853
public ConstructorBuilder DefineConstructor(MethodAttributes attributes,
CallingConventions
callingConvention,
1868
private ConstructorBuilder DefineConstructorNoLock(MethodAttributes attributes,
CallingConventions
callingConvention,
1908
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes,
1923
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes,
1938
CallingConventions
callingConvention,
2134
CallingConventions
callingConvention, Type returnType, Type[] parameterTypes)
2144
return DefineProperty(name, attributes, (
CallingConventions
)0, returnType,
2150
public PropertyBuilder DefineProperty(String name, PropertyAttributes attributes,
CallingConventions
callingConvention,
2162
private PropertyBuilder DefinePropertyNoLock(String name, PropertyAttributes attributes,
CallingConventions
callingConvention,
system\reflection\emit\typebuilderinstantiation.cs (2)
171
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
175
protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { throw new NotSupportedException(); }
system\reflection\emit\xxxontypebuilderinstantiation.cs (2)
84
public override
CallingConventions
CallingConvention { get { return m_method.CallingConvention; } }
181
public override
CallingConventions
CallingConvention { get { return m_ctor.CallingConvention; } }
system\reflection\methodbase.cs (5)
181
public virtual
CallingConventions
CallingConvention { get { return
CallingConventions
.Standard; } }
264
internal static string ConstructParameters(Type[] parameterTypes,
CallingConventions
callingConvention, bool serialization)
293
if ((callingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs)
system\reflection\methodinfo.cs (5)
201
((CallingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs) ||
629
public override
CallingConventions
CallingConvention
683
else if ((CallingConvention &
CallingConventions
.VarArgs) ==
CallingConventions
.VarArgs)
system\reflection\module.cs (6)
439
String name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
472
return GetMethodImpl(name, Module.DefaultLookup, null,
CallingConventions
.Any, types, null);
481
return GetMethodImpl(name, Module.DefaultLookup, null,
CallingConventions
.Any,
486
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
958
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
964
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
system\reflection\typedelegator.cs (2)
89
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
101
CallingConventions
callConvention, Type[] types,ParameterModifier[] modifiers)
system\rttype.cs (27)
1772
CallingConventions
.Any,
2500
RuntimeMethodInfo method, BindingFlags bindingFlags,
CallingConventions
callConv, Type[] argumentTypes)
2507
RuntimeConstructorInfo constructor, BindingFlags bindingFlags,
CallingConventions
callConv, Type[] argumentTypes)
2516
MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags,
CallingConventions
callConv, Type[] argumentTypes)
2528
if ((callConv &
CallingConventions
.Any) == 0)
2530
if ((callConv &
CallingConventions
.VarArgs) != 0 &&
2531
(methodBase.CallingConvention &
CallingConventions
.VarArgs) == 0)
2534
if ((callConv &
CallingConventions
.Standard) != 0 &&
2535
(methodBase.CallingConvention &
CallingConventions
.Standard) == 0)
2561
if ((methodBase.CallingConvention &
CallingConventions
.VarArgs) == 0)
2569
Contract.Assert((callConv &
CallingConventions
.VarArgs) != 0);
2804
String name, BindingFlags bindingAttr,
CallingConventions
callConv,
2828
string name, BindingFlags bindingAttr,
CallingConventions
callConv,
3054
return GetMethodCandidates(null, bindingAttr,
CallingConventions
.Any, null, false).ToArray();
3060
ConstructorInfo[] constructors = GetConstructorCandidates(null, bindingAttr,
CallingConventions
.Any, null, false).ToArray();
3120
ListBuilder<MethodInfo> methods = GetMethodCandidates(null, bindingAttr,
CallingConventions
.Any, null, false);
3121
ListBuilder<ConstructorInfo> constructors = GetConstructorCandidates(null, bindingAttr,
CallingConventions
.Any, null, false);
3211
String name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConv,
3251
BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention,
3254
ListBuilder<ConstructorInfo> candidates = GetConstructorCandidates(null, bindingAttr,
CallingConventions
.Any, types, false);
3474
methods = GetMethodCandidates(name, bindingAttr,
CallingConventions
.Any, null, true);
3483
constructors = GetConstructorCandidates(name, bindingAttr,
CallingConventions
.Any, null, true);
4844
if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags,
CallingConventions
.Any, new Type[argCnt]))
4898
if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags,
CallingConventions
.Any, new Type[argCnt]))
5234
if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr,
CallingConventions
.Any, argsType))
5314
Contract.Assert((invokeMethod.CallingConvention &
CallingConventions
.VarArgs) ==
5315
CallingConventions
.VarArgs);
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (2)
145
CallingConventions
.Standard,
263
CallingConventions
.Standard,
system\runtime\remoting\message.cs (1)
3155
CallingConventions
.Any,
system\runtime\remoting\remotingservices.cs (1)
1973
mb = rt.GetMethod(msg.MethodName, RemotingServices.LookupAll, null,
CallingConventions
.Any, signature, null);
system\runtimehandles.cs (3)
2182
CallingConventions
callingConvention)
2213
internal
CallingConventions
CallingConvention { get { return (
CallingConventions
)(byte)m_managedCallingConventionAndArgIteratorFlags; } }
system\type.cs (11)
407
CallingConventions
callConvention,
430
return GetConstructorImpl(bindingAttr, binder,
CallingConventions
.Any, types, modifiers);
442
CallingConventions
callConvention,
463
CallingConventions
.Any,
477
CallingConventions
callConvention,
506
return GetMethodImpl(name, bindingAttr, binder,
CallingConventions
.Any, types, modifiers);
519
return GetMethodImpl(name, Type.DefaultLookup, null,
CallingConventions
.Any, types, modifiers);
532
return GetMethodImpl(name, Type.DefaultLookup, null,
CallingConventions
.Any, types, null);
540
return GetMethodImpl(name, bindingAttr, null,
CallingConventions
.Any, null, null);
548
return GetMethodImpl(name, Type.DefaultLookup, null,
CallingConventions
.Any, null, null);
554
CallingConventions
callConvention,
System (4)
regex\system\text\regularexpressions\RegexCompiler.cs (4)
3203
defCtorBuilder = _typebuilder.DefineConstructor(ma,
CallingConventions
.Standard, noTypeArray);
3280
tmoutCtorBuilder = _typebuilder.DefineConstructor(ma,
CallingConventions
.Standard, new Type[] { typeof(TimeSpan) });
3450
CallingConventions
conventions =
CallingConventions
.Standard;
System.Activities (1)
System\Activities\Statements\MethodResolver.cs (1)
350
methodBinder,
CallingConventions
.Any, parameterTypes, null);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (3)
1079
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1332
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
1961
public override
CallingConventions
CallingConvention { get { return _info.CallingConvention; } }
System.Configuration (1)
System\Configuration\TypeUtil.cs (1)
212
ConstructorInfo ctor = type.GetConstructor(bindingFlags, null,
CallingConventions
.HasThis, Type.EmptyTypes, null);
System.Core (4)
Microsoft\Scripting\Ast\IndexExpression.cs (1)
404
if ((method.CallingConvention &
CallingConventions
.VarArgs) != 0) throw Error.AccessorsCannotHaveVarArgs();
Microsoft\Scripting\Compiler\DelegateHelpers.cs (1)
37
builder.DefineConstructor(CtorAttributes,
CallingConventions
.Standard, _DelegateCtorSignature).SetImplementationFlags(ImplAttributes);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
358
if (mi.CallingConvention ==
CallingConventions
.VarArgs) {
378
if (method.CallingConvention ==
CallingConventions
.VarArgs) {
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (3)
1079
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) { return _baseReflectionType.GetConstructor(bindingAttr, binder, callConvention, types, modifiers); }
1332
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
1961
public override
CallingConventions
CallingConvention { get { return _info.CallingConvention; } }
System.Data.Entity (2)
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
1665
ConstructorBuilder proxyConstructor = typeBuilder.DefineConstructor(constructorAttributes,
CallingConventions
.Standard |
CallingConventions
.HasThis, parameterTypes);
System.Web (2)
Compilation\DelayLoadType.cs (2)
84
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) {
124
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers) {
System.Workflow.ComponentModel (5)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
962
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
967
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (3)
670
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
693
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
1078
public override
CallingConventions
CallingConvention
System.WorkflowServices (2)
System\Workflow\Activities\ContractType.cs (2)
470
protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
475
protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
CallingConventions
callConvention, Type[] types, ParameterModifier[] modifiers)
System.Xml (4)
System\Xml\Serialization\XmlSerializationILGen.cs (3)
137
CallingConventions
.HasThis,
476
CallingConventions
.HasThis,
499
CallingConventions
.HasThis,
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
983
CallingConventions
.HasThis,