38 references to HasValue
Microsoft.AspNetCore.Razor.Utilities.Shared (15)
Optional`1.cs (2)
13
=>
HasValue
? Value : defaultValue;
19
=>
HasValue
? Value?.ToString() ?? "null" : "unspecified";
PooledObjects\ArrayBuilderPool`1.Policy.cs (2)
33
if ((!initialCapacity.
HasValue
|| initialCapacity.Value == Default._initialCapacity) &&
34
(!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize))
PooledObjects\CustomObjectPool`1.cs (1)
13
: base(policy, poolSize.
HasValue
? poolSize.Value : DefaultPoolSize)
PooledObjects\DefaultPool.cs (1)
15
=> new DefaultObjectPool<T>(policy, poolSize.
HasValue
? poolSize.Value : DefaultPoolSize);
PooledObjects\DictionaryBuilderPool`2.Policy.cs (1)
24
if (!keyComparer.
HasValue
|| keyComparer.Value == Default._keyComparer)
PooledObjects\DictionaryPool`2.Policy.cs (2)
30
if ((!comparer.
HasValue
|| comparer.Value == Default._comparer) &&
31
(!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize))
PooledObjects\HashSetPool`1.Policy.cs (2)
30
if ((!comparer.
HasValue
|| comparer.Value is null || comparer.Value == Default.Comparer) &&
31
(!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize))
PooledObjects\ListPool`1.Policy.cs (1)
23
if (!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\QueuePool`1.Policy.cs (1)
23
if (!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\StackPool`1.Policy.cs (1)
23
if (!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\StringBuilderPool.Policy.cs (1)
23
if (!maximumObjectSize.
HasValue
|| maximumObjectSize.Value == Default._maximumObjectSize)
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
)