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)
33if ((!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)
24if (!keyComparer.HasValue || keyComparer.Value == Default._keyComparer)
PooledObjects\DictionaryPool`2.Policy.cs (2)
30if ((!comparer.HasValue || comparer.Value == Default._comparer) && 31(!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize))
PooledObjects\HashSetPool`1.Policy.cs (2)
30if ((!comparer.HasValue || comparer.Value is null || comparer.Value == Default.Comparer) && 31(!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize))
PooledObjects\ListPool`1.Policy.cs (1)
23if (!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\QueuePool`1.Policy.cs (1)
23if (!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\StackPool`1.Policy.cs (1)
23if (!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize)
PooledObjects\StringBuilderPool.Policy.cs (1)
23if (!maximumObjectSize.HasValue || maximumObjectSize.Value == Default._maximumObjectSize)
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)