9 references to IsAssignableFrom
Microsoft.AspNetCore.App.Analyzers (9)
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
144
if (!attributeInterface.
IsAssignableFrom
(attribute))
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
278
var delegateParameter = method.Parameters.FirstOrDefault(p => delegateSymbol.
IsAssignableFrom
(p.Type));
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (5)
36
if (wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IResult).
IsAssignableFrom
(returnType))
43
(wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Mvc_IActionResult).
IsAssignableFrom
(returnType) ||
44
wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Mvc_Infrastructure_IConvertToActionResult).
IsAssignableFrom
(returnType)))
74
if (wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_IResult).
IsAssignableFrom
(type))
79
if (wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Mvc_IActionResult).
IsAssignableFrom
(type))
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
25
if (declaredAttribute.AttributeClass is not null && attribute.
IsAssignableFrom
(declaredAttribute.AttributeClass))
135
if (declaredAttribute.AttributeClass is not null && attribute.
IsAssignableFrom
(declaredAttribute.AttributeClass))