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