8 implementations of IsGenericMethod
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
76public virtual bool IsGenericMethod => this.Arity > 0;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
76public virtual bool IsGenericMethod => this.Arity > 0;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
76public virtual bool IsGenericMethod => this.Arity > 0;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
240bool IMethodSymbol.IsGenericMethod
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (1)
46public bool IsGenericMethod => _symbol.IsGenericMethod;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1138Private ReadOnly Property IMethodSymbol_IsGenericMethod As Boolean Implements IMethodSymbol.IsGenericMethod
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
76public virtual bool IsGenericMethod => this.Arity > 0;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
76public virtual bool IsGenericMethod => this.Arity > 0;
61 references to IsGenericMethod
ConfigurationSchemaGenerator (5)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
942_emitGenericParseEnum = _typeSymbols.Enum.GetMembers("Parse").Any(m => m is IMethodSymbol methodSymbol && methodSymbol.IsGenericMethod);
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
148if (targetMethod.IsGenericMethod) 198if (targetMethod.IsGenericMethod)
RuntimeSource\Configuration.Binder\Parser\OptionsBuilderConfigurationExtensions.cs (1)
20if (!targetMethod.IsGenericMethod ||
RuntimeSource\Configuration.Binder\Parser\OptionsConfigurationServiceCollectionExtensions.cs (1)
22if (!targetMethod.IsGenericMethod ||
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
99method.IsGenericMethod
ILLink.RoslynAnalyzer (3)
TrimAnalysis\GenericArgumentDataFlow.cs (1)
113if (method.IsGenericMethod)
TrimAnalysis\MethodProxy.cs (1)
32internal partial bool HasGenericParameters() => Method.IsGenericMethod;
TrimAnalysis\TrimAnalysisVisitor.cs (1)
468if (!method.IsStatic && !method.IsGenericMethod && !method.IsConstructor())
Microsoft.AspNetCore.App.Analyzers (1)
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
94if (method.IsGenericMethod)
Microsoft.AspNetCore.Components.Analyzers (2)
InvokeAsyncOfObjectAnalyzer.cs (1)
57if (targetMethod.Name != "InvokeAsync" || !targetMethod.IsGenericMethod)
VirtualizeItemComparerAnalyzer.cs (1)
65if (targetMethod.IsGenericMethod && targetMethod.TypeArguments.Length == 1)
Microsoft.AspNetCore.Components.Testing.Generators (4)
ServiceOverrideAnalyzer.cs (2)
66if (method.IsGenericMethod && method.TypeArguments.Length == 1) 74else if (!method.IsGenericMethod && method.Parameters.Length == 2)
StartupHookGenerator.cs (2)
100if (method.IsGenericMethod && method.TypeArguments.Length == 1) 109else if (!method.IsGenericMethod && method.Parameters.Length == 2)
Microsoft.AspNetCore.Mvc.Analyzers (2)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
71!method.IsGenericMethod &&
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
94if (method.IsGenericMethod)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\aspnetcore\src\Shared\Roslyn\MvcFacts.cs (1)
94if (method.IsGenericMethod)
Microsoft.CodeAnalysis (1)
Symbols\ISymbolExtensions.cs (1)
27if (!reducedFrom.IsGenericMethod)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
99method.IsGenericMethod
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
99method.IsGenericMethod
Microsoft.CodeAnalysis.CSharp.Features (2)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
136if (interceptor.IsGenericMethod)
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (1)
96if (currentSymbol?.IsGenericMethod == true)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.Fixer.cs (2)
95if (operation.TargetMethod.IsGenericMethod) 124if (operation.TargetMethod.IsGenericMethod && operation.Arguments.Length == 1)
Microsoft.CodeAnalysis.Features (5)
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
435var memberName = _methodSymbol.IsGenericMethod
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (1)
46public bool IsGenericMethod => _symbol.IsGenericMethod;
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
113!getMethod.IsGenericMethod && 145!setMethod.IsGenericMethod &&
SignatureHelp\AbstractSignatureHelpProvider.cs (1)
273if (symbol is IMethodSymbol methodSymbol && methodSymbol.IsGenericMethod && methodSymbol != methodSymbol.OriginalDefinition)
Microsoft.CodeAnalysis.NetAnalyzers (16)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UsePropertiesWhereAppropriate.cs (1)
85if (methodSymbol.IsGenericMethod ||
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (1)
152if (!methodType.IsGenericMethod)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.cs (1)
319if (!methodSymbol.IsExternallyVisible() || methodSymbol.IsGenericMethod)
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DisabledRuntimeMarshallingAssemblyAnalyzer.cs (1)
92"SizeOf" => invocation.TargetMethod.IsGenericMethod || (invocation.Arguments.Length > 0 && invocation.Arguments.GetArgumentForParameterAtIndex(0).Value is ITypeOfOperation { TypeOperand.IsUnmanagedType: true }),
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
1373else if (symbol is IMethodSymbol method && method.IsGenericMethod)
Microsoft.NetCore.Analyzers\Performance\UseCompositeFormat.cs (3)
191if (!methods.Any(m => m.IsGenericMethod && 200if (!methods.Any(m => m.IsGenericMethod && 210if (!methods.Any(m => m.IsGenericMethod &&
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.cs (1)
273if (method.IsGenericMethod)
Microsoft.NetCore.Analyzers\Runtime\ModuleInitializerAttributeShouldNotBeUsedInLibraries.cs (1)
65method.IsGenericMethod ||
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureInfo.cs (1)
49if (targetMethod.ContainingType == null || targetMethod.ContainingType.IsErrorType() || targetMethod.IsGenericMethod)
Microsoft.NetCore.Analyzers\Runtime\SpecifyIFormatProvider.cs (1)
183if (targetMethod.IsGenericMethod ||
Microsoft.NetCore.Analyzers\Runtime\SpecifyStringComparison.cs (1)
72if (targetMethod.IsGenericMethod ||
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableObjectGraphAnalyzer.cs (3)
169if (targetMethod.IsGenericMethod 179else if (!targetMethod.IsGenericMethod 212if (targetMethod.IsGenericMethod && targetMethod.Arity == 1)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1138Private ReadOnly Property IMethodSymbol_IsGenericMethod As Boolean Implements IMethodSymbol.IsGenericMethod
Microsoft.CodeAnalysis.VisualBasic.Features (1)
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
89If matchedMethodSymbol IsNot Nothing AndAlso matchedMethodSymbol.IsGenericMethod Then
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
99method.IsGenericMethod
Microsoft.Extensions.Configuration.Binder.SourceGeneration (5)
ConfigurationBindingGenerator.Parser.cs (1)
998_emitGenericParseEnum = _typeSymbols.Enum.GetMembers("Parse").Any(m => m is IMethodSymbol methodSymbol && methodSymbol.IsGenericMethod);
Parser\ConfigurationBinder.cs (2)
148if (targetMethod.IsGenericMethod) 198if (targetMethod.IsGenericMethod)
Parser\OptionsBuilderConfigurationExtensions.cs (1)
20if (!targetMethod.IsGenericMethod ||
Parser\OptionsConfigurationServiceCollectionExtensions.cs (1)
22if (!targetMethod.IsGenericMethod ||
Microsoft.Gen.Logging (1)
Parsing\Parser.TagProvider.cs (1)
97&& !method.IsGenericMethod
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (3)
66if (createAggregatedObject is IMethodSymbol { IsGenericMethod: true }) 78if (createWrapperOfType is IMethodSymbol { IsGenericMethod: true }) 94if (getComInterfaceForObject is IMethodSymbol { IsGenericMethod: true })
Microsoft.Maui.Controls.BindingSourceGen (1)
InvocationParser.cs (1)
71 || !methodSymbol.IsGenericMethod
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
99method.IsGenericMethod