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)
213
if (indentWithTabs.
HasValue
)
218
if (suppressChecksum.
HasValue
)
223
if (suppressMetadataAttributes.
HasValue
)
228
if (suppressMetadataSourceChecksumAttributes.
HasValue
)
233
if (suppressPrimaryMethodBody.
HasValue
)
238
if (suppressNullabilityEnforcement.
HasValue
)
243
if (omitMinimizedComponentAttributeValues.
HasValue
)
248
if (supportLocalizedComponentNames.
HasValue
)
253
if (useEnhancedLinePragma.
HasValue
)
258
if (suppressAddComponentParameter.
HasValue
)
263
if (remapLinePragmaPathsOnWindows.
HasValue
)
268
if (writeHtmlUtf8StringLiterals.
HasValue
)
Language\RazorParserOptions.cs (11)
128
if (parseLeadingDirectives.
HasValue
)
133
if (useRoslynTokenizer.
HasValue
)
138
if (enableSpanEditHandlers.
HasValue
)
143
if (allowMinimizedBooleanTagHelperAttributes.
HasValue
)
148
if (allowHtmlCommentsInTagHelpers.
HasValue
)
153
if (allowComponentFileKind.
HasValue
)
158
if (allowRazorInAllCodeBlocks.
HasValue
)
163
if (allowUsingVariableDeclarations.
HasValue
)
168
if (allowConditionalDataDashAttributes.
HasValue
)
173
if (allowCSharpInMarkupAttributeArea.
HasValue
)
178
if (allowNullableForgivenessOperator.
HasValue
)