44 references to Value
Microsoft.AspNetCore.Razor.Test.Common (4)
Language\TestTagMatchingRuleDescriptorBuilderExtensions.cs (4)
111attribute.Name = name.Value; 116attribute.NameComparison = nameComparison.Value; 121attribute.Value = value.Value; 126attribute.ValueComparison = valueComparison.Value;
Microsoft.AspNetCore.Razor.Utilities.Shared (16)
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 (3)
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)
221flags.UpdateFlag(Flags.DesignTime, designTime.Value); 226flags.UpdateFlag(Flags.IndentWithTabs, indentWithTabs.Value); 231flags.UpdateFlag(Flags.SuppressChecksum, suppressChecksum.Value); 236flags.UpdateFlag(Flags.SuppressMetadataAttributes, suppressMetadataAttributes.Value); 241flags.UpdateFlag(Flags.SuppressMetadataSourceChecksumAttributes, suppressMetadataSourceChecksumAttributes.Value); 246flags.UpdateFlag(Flags.SuppressPrimaryMethodBody, suppressPrimaryMethodBody.Value); 251flags.UpdateFlag(Flags.SuppressNullabilityEnforcement, suppressNullabilityEnforcement.Value); 256flags.UpdateFlag(Flags.OmitMinimizedComponentAttributeValues, omitMinimizedComponentAttributeValues.Value); 261flags.UpdateFlag(Flags.SupportLocalizedComponentNames, supportLocalizedComponentNames.Value); 266flags.UpdateFlag(Flags.UseEnhancedLinePragma, useEnhancedLinePragma.Value); 271flags.UpdateFlag(Flags.SuppressAddComponentParameter, suppressAddComponentParameter.Value); 276flags.UpdateFlag(Flags.RemapLinePragmaPathsOnWindows, remapLinePragmaPathsOnWindows.Value);
Language\RazorParserOptions.cs (12)
134flags.UpdateFlag(Flags.DesignTime, designTime.Value); 139flags.UpdateFlag(Flags.ParseLeadingDirectives, parseLeadingDirectives.Value); 144flags.UpdateFlag(Flags.UseRoslynTokenizer, useRoslynTokenizer.Value); 149flags.UpdateFlag(Flags.EnableSpanEditHandlers, enableSpanEditHandlers.Value); 154flags.UpdateFlag(Flags.AllowMinimizedBooleanTagHelperAttributes, allowMinimizedBooleanTagHelperAttributes.Value); 159flags.UpdateFlag(Flags.AllowHtmlCommentsInTagHelpers, allowHtmlCommentsInTagHelpers.Value); 164flags.UpdateFlag(Flags.AllowComponentFileKind, allowComponentFileKind.Value); 169flags.UpdateFlag(Flags.AllowRazorInAllCodeBlocks, allowRazorInAllCodeBlocks.Value); 174flags.UpdateFlag(Flags.AllowUsingVariableDeclarations, allowUsingVariableDeclarations.Value); 179flags.UpdateFlag(Flags.AllowConditionalDataDashAttributes, allowConditionalDataDashAttributes.Value); 184flags.UpdateFlag(Flags.AllowCSharpInMarkupAttributeArea, allowCSharpInMarkupAttributeArea.Value); 189flags.UpdateFlag(Flags.AllowNullableForgivenessOperator, allowNullableForgivenessOperator.Value);