43 references to HasValue
Microsoft.AspNetCore.Razor.Test.Common (4)
Language\TestTagMatchingRuleDescriptorBuilderExtensions.cs (4)
109if (name.HasValue) 114if (nameComparison.HasValue) 119if (value.HasValue) 124if (valueComparison.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)
15: base(policy, poolSize.HasValue ? poolSize.Value : DefaultPoolSize)
PooledObjects\DefaultPool.cs (1)
16=> 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 (24)
Language\RazorCodeGenerationOptions.cs (12)
219if (designTime.HasValue) 224if (indentWithTabs.HasValue) 229if (suppressChecksum.HasValue) 234if (suppressMetadataAttributes.HasValue) 239if (suppressMetadataSourceChecksumAttributes.HasValue) 244if (suppressPrimaryMethodBody.HasValue) 249if (suppressNullabilityEnforcement.HasValue) 254if (omitMinimizedComponentAttributeValues.HasValue) 259if (supportLocalizedComponentNames.HasValue) 264if (useEnhancedLinePragma.HasValue) 269if (suppressAddComponentParameter.HasValue) 274if (remapLinePragmaPathsOnWindows.HasValue)
Language\RazorParserOptions.cs (12)
132if (designTime.HasValue) 137if (parseLeadingDirectives.HasValue) 142if (useRoslynTokenizer.HasValue) 147if (enableSpanEditHandlers.HasValue) 152if (allowMinimizedBooleanTagHelperAttributes.HasValue) 157if (allowHtmlCommentsInTagHelpers.HasValue) 162if (allowComponentFileKind.HasValue) 167if (allowRazorInAllCodeBlocks.HasValue) 172if (allowUsingVariableDeclarations.HasValue) 177if (allowConditionalDataDashAttributes.HasValue) 182if (allowCSharpInMarkupAttributeArea.HasValue) 187if (allowNullableForgivenessOperator.HasValue)