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)
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);
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 (5)
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);
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);
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);
src\System\RuntimeType.CoreCLR.cs (10)
2292
if ((callConv & CallingConventions.
Any
) == 0)
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);
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);
3894
ListBuilder<ConstructorInfo> candidates = GetConstructorCandidates(null, bindingAttr, CallingConventions.
Any
, null, false);
3910
if (FilterApplyConstructorInfo((RuntimeConstructorInfo)candidates[i], bindingAttr, CallingConventions.
Any
, argsType))
System.Reflection.Emit (3)
System\Reflection\Emit\TypeBuilderImpl.cs (3)
694
if ((callConv & CallingConventions.
Any
) == 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))
System.Reflection.MetadataLoadContext (2)
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
29
if ((callConv & CallingConventions.
Any
) == 0)
System\Reflection\TypeLoading\RuntimeTypeInfo.BindingFlags.cs (1)
74
Debug.Assert(callConvention == CallingConventions.
Any
);