25 references to HasValue
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Optional`1.cs (2)
13=> HasValue ? Value : defaultValue; 19=> HasValue ? Value?.ToString() ?? "null" : "unspecified";
Microsoft.CodeAnalysis.Razor.Compiler (23)
Language\RazorCodeGenerationOptions.cs (12)
213if (indentWithTabs.HasValue) 218if (suppressChecksum.HasValue) 223if (suppressMetadataAttributes.HasValue) 228if (suppressMetadataSourceChecksumAttributes.HasValue) 233if (suppressPrimaryMethodBody.HasValue) 238if (suppressNullabilityEnforcement.HasValue) 243if (omitMinimizedComponentAttributeValues.HasValue) 248if (supportLocalizedComponentNames.HasValue) 253if (useEnhancedLinePragma.HasValue) 258if (suppressAddComponentParameter.HasValue) 263if (remapLinePragmaPathsOnWindows.HasValue) 268if (writeHtmlUtf8StringLiterals.HasValue)
Language\RazorParserOptions.cs (11)
128if (parseLeadingDirectives.HasValue) 133if (useRoslynTokenizer.HasValue) 138if (enableSpanEditHandlers.HasValue) 143if (allowMinimizedBooleanTagHelperAttributes.HasValue) 148if (allowHtmlCommentsInTagHelpers.HasValue) 153if (allowComponentFileKind.HasValue) 158if (allowRazorInAllCodeBlocks.HasValue) 163if (allowUsingVariableDeclarations.HasValue) 168if (allowConditionalDataDashAttributes.HasValue) 173if (allowCSharpInMarkupAttributeArea.HasValue) 178if (allowNullableForgivenessOperator.HasValue)