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