26 references to Any
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,
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (2)
43return GetMethodImpl(name, DefaultLookup, null, CallingConventions.Any, null, null); 47public MethodInfo? GetMethod(string name, Type[] types) => GetMethod(name, DefaultLookup, null, CallingConventions.Any, types, null);
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 (5)
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); 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); 374public MethodInfo? GetMethod(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, Type[] types, ParameterModifier[]? modifiers) => GetMethod(name, genericParameterCount, bindingAttr, binder, CallingConventions.Any, types, modifiers);
src\System\RuntimeType.CoreCLR.cs (10)
2292if ((callConv & CallingConventions.Any) == 0) 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); 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); 3894ListBuilder<ConstructorInfo> candidates = GetConstructorCandidates(null, bindingAttr, CallingConventions.Any, null, false); 3910if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr, CallingConventions.Any, argsType))
System.Reflection.Emit (3)
System\Reflection\Emit\TypeBuilderImpl.cs (3)
694if ((callConv & CallingConventions.Any) == 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))
System.Reflection.MetadataLoadContext (2)
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
29if ((callConv & CallingConventions.Any) == 0)
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (1)
74Debug.Assert(callConvention == CallingConventions.Any);