15 references to TryGetType
Microsoft.AspNetCore.Mvc.Api.Analyzers (15)
ApiControllerSymbolCache.cs (15)
15if (!TryGetType(ApiSymbolNames.ApiConventionMethodAttribute, out var apiConventionMethodAttribute))
20if (!TryGetType(ApiSymbolNames.ApiConventionNameMatchAttribute, out var apiConventionNameMatchAttribute))
25if (!TryGetType(ApiSymbolNames.ApiConventionTypeAttribute, out var apiConventionTypeAttribute))
30if (!TryGetType(ApiSymbolNames.ApiConventionTypeMatchAttribute, out var apiConventionTypeMatchAttribute))
35if (!TryGetType(ApiSymbolNames.ControllerAttribute, out var controllerAttribute))
40if (!TryGetType(ApiSymbolNames.DefaultStatusCodeAttribute, out var defaultStatusCodeAttribute))
45if (!TryGetType(ApiSymbolNames.IActionResult, out var iActionResult))
50if (!TryGetType(ApiSymbolNames.IApiBehaviorMetadata, out var iApiBehaviorMetadata))
55if (!TryGetType(ApiSymbolNames.ModelStateDictionary, out var modelStateDictionary))
60if (!TryGetType(ApiSymbolNames.NonActionAttribute, out var nonActionAttribute))
65if (!TryGetType(ApiSymbolNames.NonControllerAttribute, out var nonControllerAttribute))
70if (!TryGetType(ApiSymbolNames.ProblemDetails, out var problemDetails))
75if (!TryGetType(ApiSymbolNames.ProducesDefaultResponseTypeAttribute, out var producesDefaultResponseTypeAttribute))
80if (!TryGetType(ApiSymbolNames.ProducesErrorResponseTypeAttribute, out var producesErrorResponseTypeAttribute))
85if (!TryGetType(ApiSymbolNames.ProducesResponseTypeAttribute, out var producesResponseTypeAttribute))