diff --git a/Consumers.sln.DotSettings b/Consumers.sln.DotSettings
index 9fd659ca19..34aa8bbae0 100644
--- a/Consumers.sln.DotSettings
+++ b/Consumers.sln.DotSettings
@@ -9,4 +9,6 @@
<Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Types and namespaces"><ElementKinds><Kind Name="NAMESPACE" /><Kind Name="CLASS" /><Kind Name="STRUCT" /><Kind Name="DELEGATE" /><Kind Name="ENUM" /><Kind Name="TEST_TYPE" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb"><ExtraRule Prefix="" Suffix="" Style="AaBb_aaBb" /></Policy></Policy>
True
- True
\ No newline at end of file
+ True
+ True
+ True
\ No newline at end of file
diff --git a/samples/OrleansExample/Program.cs b/samples/OrleansExample/Program.cs
index 259e6456aa..b56bf9b82c 100644
--- a/samples/OrleansExample/Program.cs
+++ b/samples/OrleansExample/Program.cs
@@ -1,4 +1,3 @@
-using Orleans.Runtime;
using OrleansExample;
var builder = WebApplication.CreateBuilder(args);
diff --git a/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_conversion_attributes.cs b/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_conversion_attributes.cs
index 9fe4945569..1c17532f4d 100644
--- a/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_conversion_attributes.cs
+++ b/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_conversion_attributes.cs
@@ -6,7 +6,6 @@
using System.Threading.Tasks;
using JetBrains.Annotations;
using MessagePack;
-using MessagePack.Formatters;
namespace Vogen.Examples.SerializationAndConversion.MessagePackScenario.UsingConversionAttributes;
diff --git a/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_markers.cs b/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_markers.cs
index 8eff8c4ac6..f32deee236 100644
--- a/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_markers.cs
+++ b/samples/Vogen.Examples/SerializationAndConversion/MessagePack/MessagePackScenario_using_markers.cs
@@ -6,7 +6,6 @@
using System.Threading.Tasks;
using JetBrains.Annotations;
using MessagePack;
-using MessagePack.Formatters;
namespace Vogen.Examples.SerializationAndConversion.MessagePackScenario.UsingMarkers;
diff --git a/samples/Vogen.Examples/SerializationAndConversion/Mongo/MongoScenario.cs b/samples/Vogen.Examples/SerializationAndConversion/Mongo/MongoScenario.cs
index 7756b5edce..27db5766f0 100644
--- a/samples/Vogen.Examples/SerializationAndConversion/Mongo/MongoScenario.cs
+++ b/samples/Vogen.Examples/SerializationAndConversion/Mongo/MongoScenario.cs
@@ -3,7 +3,6 @@
#endif
using System;
-using System.Linq;
using System.Threading.Tasks;
using Bogus;
using JetBrains.Annotations;
diff --git a/samples/Vogen.Examples/TypicalScenarios/StaticAbstractsExample.cs b/samples/Vogen.Examples/TypicalScenarios/StaticAbstractsExample.cs
index 94858d32aa..7a70d4f26e 100644
--- a/samples/Vogen.Examples/TypicalScenarios/StaticAbstractsExample.cs
+++ b/samples/Vogen.Examples/TypicalScenarios/StaticAbstractsExample.cs
@@ -1,6 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Numerics;
using System.Threading;
using System.Threading.Tasks;
using JetBrains.Annotations;
diff --git a/samples/WebApplication/OrdersController.cs b/samples/WebApplication/OrdersController.cs
index 701026e91e..d3c9e890be 100644
--- a/samples/WebApplication/OrdersController.cs
+++ b/samples/WebApplication/OrdersController.cs
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Mvc;
-using Vogen;
[Route("api/[controller]")]
public class OrdersController : ControllerBase
diff --git a/samples/WebApplication/Program.cs b/samples/WebApplication/Program.cs
index 6dca676164..f24718264d 100644
--- a/samples/WebApplication/Program.cs
+++ b/samples/WebApplication/Program.cs
@@ -1,11 +1,7 @@
-using System.ComponentModel.DataAnnotations;
-using Microsoft.AspNetCore.OpenApi;
using Microsoft.OpenApi.Any;
-using Microsoft.OpenApi.Models;
using Vogen;
#if USE_SWASHBUCKLE
-using Swashbuckle.AspNetCore.SwaggerGen;
#endif
#if USE_MICROSOFT_OPENAPI_AND_SCALAR
using Scalar.AspNetCore;
diff --git a/samples/WebApplication/__ProduceDiagnostics.cs b/samples/WebApplication/__ProduceDiagnostics.cs
index 1513c7ea17..5af9787944 100644
--- a/samples/WebApplication/__ProduceDiagnostics.cs
+++ b/samples/WebApplication/__ProduceDiagnostics.cs
@@ -1,4 +1,4 @@
-using Vogen;
+
// If Vogen find this type in this namespace, it'll generate a `diganostics.cs`, which is just a
// C# file with a multi-line comment describing what language version, targets, config etc.
diff --git a/src/Vogen/GenerateCodeForTryFormat.cs b/src/Vogen/GenerateCodeForTryFormat.cs
index d19bced17f..29522bcdd2 100644
--- a/src/Vogen/GenerateCodeForTryFormat.cs
+++ b/src/Vogen/GenerateCodeForTryFormat.cs
@@ -70,7 +70,7 @@ private static void BuildFor(StringBuilder sb,
continue;
}
- sb.AppendLine(Hoisting.HoistMethodFromPrimitive(
+ string hoistMethodFromPrimitive = Hoisting.HoistMethodFromPrimitive(
primitiveMethod,
interfaceSymbol!,
(valueAccessor, parameterNames) =>
@@ -80,13 +80,16 @@ private static void BuildFor(StringBuilder sb,
return $"""return IsInitialized() ? {valueAccessor}.ToString({parameterNames}) : "[UNINITIALIZED]";""";
}
+
if (formattableType is FormattableType.TryFormat)
{
- return $"return IsInitialized() ? {valueAccessor}.TryFormat({parameterNames}) : false;";
+ return $"return IsInitialized() ? {valueAccessor}.TryFormat({parameterNames}) : true;";
}
return "return default!";
- }));
+ });
+
+ sb.AppendLine(hoistMethodFromPrimitive);
}
}
}
\ No newline at end of file
diff --git a/tests/ConsumerTests/ParseAndTryParseTests/Tests.cs b/tests/ConsumerTests/ParsingAndFormattingTests/Tests.cs
similarity index 99%
rename from tests/ConsumerTests/ParseAndTryParseTests/Tests.cs
rename to tests/ConsumerTests/ParsingAndFormattingTests/Tests.cs
index c1657881da..14f9b827fe 100644
--- a/tests/ConsumerTests/ParseAndTryParseTests/Tests.cs
+++ b/tests/ConsumerTests/ParsingAndFormattingTests/Tests.cs
@@ -2,7 +2,7 @@
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
#pragma warning disable CS8602 // Dereference of a possibly null reference.
-namespace ConsumerTests.ParseAndTryParseTests;
+namespace ConsumerTests.ParsingAndFormattingTests;
public class Tests
{
diff --git a/tests/ConsumerTests/ParsingAndFormattingTests/TryFormatTests.cs b/tests/ConsumerTests/ParsingAndFormattingTests/TryFormatTests.cs
new file mode 100644
index 0000000000..2c11a551d4
--- /dev/null
+++ b/tests/ConsumerTests/ParsingAndFormattingTests/TryFormatTests.cs
@@ -0,0 +1,60 @@
+using System.Globalization;
+using Vogen.Tests.Types;
+
+namespace ConsumerTests.ParsingAndFormattingTests;
+
+#pragma warning disable CS8625, CS8602
+public class TryFormatTests
+{
+ [Fact]
+ public void TryFormat_delegates_to_primitive()
+ {
+ Span s = stackalloc char[8];
+ Age.From(128).TryFormat(s, out int written, "x8", CultureInfo.InvariantCulture).Should().BeTrue();
+ written.Should().Be(8);
+ s.ToString().Should().Be("00000080");
+
+ MyDecimal d = MyDecimal.From(1.23m);
+
+ $"{d:0.000}".Should().Be("1.230");
+ d.ToString("0.00", new CultureInfo("fr")).Should().Be("1,23");
+ $"{d:0.000}".Should().Be("1.230");
+
+ Span s2 = stackalloc char[8];
+ MyDecimal.From(1.23m).TryFormat(s2, out written, "000.00", CultureInfo.InvariantCulture).Should().BeTrue();
+ written.Should().Be(6);
+ s2[..written].ToString().Should().Be("001.23");
+ }
+
+ ///
+ /// See https://github.com/SteveDunn/Vogen/issues/710
+ /// An uninitialized VO, when used in a formatted string, used to hang because it returned
+ /// false from `TryFormat`. False is only ever used in the provided span wasn't big enough, which
+ /// caused the runtime to increase the size and retry.
+ ///
+ [SkippableIfBuiltWithNoValidationFlagFact]
+ public void Uninitialized_vos_output_nothing()
+ {
+ var vo = new TestContainer();
+ vo.ToString().Should().Be("ID1:'' - ID2:'00000000-0000-0000-0000-000000000000'");
+ }
+
+ [SkippableIfNotBuiltWithNoValidationFlagFact]
+ public void Uninitialized_vos_output_default_value_when_validation_is_turned_off()
+ {
+ var vo = new TestContainer();
+ vo.ToString().Should().Be("ID1:'00000000-0000-0000-0000-000000000000' - ID2:'00000000-0000-0000-0000-000000000000'");
+ }
+
+ public class TestContainer
+ {
+ public MyId Id1 { get; set; }
+ public MyId Id2 { get; set; } = MyId.From(Guid.Empty);
+
+ public override string ToString()
+ => $"ID1:'{Id1}' - ID2:'{Id2}'";
+ }
+}
+
+[ValueObject]
+public readonly partial struct MyId;
diff --git a/tests/ConsumerTests/ParseAndTryParseTests/Types.cs b/tests/ConsumerTests/ParsingAndFormattingTests/Types.cs
similarity index 83%
rename from tests/ConsumerTests/ParseAndTryParseTests/Types.cs
rename to tests/ConsumerTests/ParsingAndFormattingTests/Types.cs
index a0cc202a19..38d5e96cfa 100644
--- a/tests/ConsumerTests/ParseAndTryParseTests/Types.cs
+++ b/tests/ConsumerTests/ParsingAndFormattingTests/Types.cs
@@ -1,16 +1,18 @@
using System.Linq;
+// ReSharper disable RedundantRecordClassKeyword
+// ReSharper disable ArrangeStaticMemberQualifier
+
+namespace ConsumerTests.ParsingAndFormattingTests;
+
+[ValueObject]
+public partial struct MyDecimal;
-namespace ConsumerTests.ParseAndTryParseTests;
[ValueObject(typeof(int), parsableForPrimitives: ParsableForPrimitives.GenerateNothing)]
-public partial struct VoNoParsableNoHoisting
-{
-}
+public partial struct VoNoParsableNoHoisting;
[ValueObject(typeof(int))]
-public partial struct StructIntVoNoValidation
-{
-}
+public partial struct StructIntVoNoValidation;
[ValueObject(typeof(string), parsableForStrings: ParsableForStrings.GenerateMethodsAndInterface )]
public partial struct VoWithOwnInstanceParseMethod
@@ -50,19 +52,13 @@ public static VoIntWithOwnStaticParseMethodWithFormatProvider Parse(string s, IF
}
[ValueObject(typeof(int))]
-public partial class ClassIntVoNoValidation
-{
-}
+public partial class ClassIntVoNoValidation;
[ValueObject(typeof(int))]
-public partial class RecordClassIntVoNoValidation
-{
-}
+public partial class RecordClassIntVoNoValidation;
[ValueObject(typeof(int))]
-public partial class RecordStructIntVoNoValidation
-{
-}
+public partial class RecordStructIntVoNoValidation;
[ValueObject]
public partial struct StructIntVo
@@ -102,28 +98,28 @@ private static Validation Validate(int input) =>
}
[ValueObject(typeof(byte))]
-public partial struct ByteVo { }
+public partial struct ByteVo;
[ValueObject(typeof(bool))]
-public partial struct StructBoolVo { }
+public partial struct StructBoolVo;
[ValueObject(typeof(bool))]
-public partial struct RecordStructBoolVo { }
+public partial struct RecordStructBoolVo;
[ValueObject(typeof(bool))]
-public partial class ClassBoolVo { }
+public partial class ClassBoolVo;
[ValueObject(typeof(bool))]
-public partial record class RecordClassBoolVo { }
+public partial record class RecordClassBoolVo;
[ValueObject(typeof(char))]
-public partial struct CharVo { }
+public partial struct CharVo;
[ValueObject(typeof(decimal))]
-public partial struct DecimalVo { }
+public partial struct DecimalVo;
[ValueObject(typeof(double))]
-public partial struct DoubleVo { }
+public partial struct DoubleVo;
public class C : IParsable
{
@@ -133,4 +129,4 @@ public class C : IParsable
}
[ValueObject]
-public partial struct MyCustomVo { }
+public partial struct MyCustomVo;
diff --git a/tests/ConsumerTests/ToStringTests/BasicFunctionality.cs b/tests/ConsumerTests/ToStringTests/BasicFunctionality.cs
index 3ed0840ba9..f85782558e 100644
--- a/tests/ConsumerTests/ToStringTests/BasicFunctionality.cs
+++ b/tests/ConsumerTests/ToStringTests/BasicFunctionality.cs
@@ -1,5 +1,4 @@
-using System.Globalization;
-using Vogen.Tests.Types;
+using Vogen.Tests.Types;
namespace ConsumerTests.ToStringTests;
@@ -81,28 +80,9 @@ public void ToString_with_format_uses_IFormattable_methods()
Name.From("barney").ToString().Should().Be("barney");
Name.From("wilma").ToString().Should().Be("wilma");
}
-
- [Fact]
- public void TryFormat_delegates_to_primitive()
- {
- Span s = stackalloc char[8];
- Age.From(128).TryFormat(s, out int written, "x8", CultureInfo.InvariantCulture).Should().BeTrue();
- written.Should().Be(8);
- s.ToString().Should().Be("00000080");
-
- MyDecimal d = MyDecimal.From(1.23m);
-
- $"{d:0.000}".Should().Be("1.230");
- d.ToString("0.00", new CultureInfo("fr")).Should().Be("1,23");
- $"{d:0.000}".Should().Be("1.230");
-
- Span s2 = stackalloc char[8];
- MyDecimal.From(1.23m).TryFormat(s2, out written, "000.00", CultureInfo.InvariantCulture).Should().BeTrue();
- written.Should().Be(6);
- s2[..written].ToString().Should().Be("001.23");
- }
}
+
[ValueObject]
public partial class VoWrappingNaughtyPrimitive
{
diff --git a/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Generates_from_a_marker.verified.txt b/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Generates_from_a_marker.verified.txt
index cd066b1b1b..6c6789731f 100644
--- a/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Generates_from_a_marker.verified.txt
+++ b/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Generates_from_a_marker.verified.txt
@@ -905,14 +905,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Writes_bson_serializers.verified.txt b/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Writes_bson_serializers.verified.txt
index 2c90bdc9af..e064d13ce5 100644
--- a/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Writes_bson_serializers.verified.txt
+++ b/tests/SnapshotTests/BsonSerializationGeneration/snapshots/snap-v8.0/BsonSerializationGenerationTests.Writes_bson_serializers.verified.txt
@@ -632,14 +632,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
index 1cd6adf21c..9b2f723097 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
index 0a439d4da6..5b28c943b9 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
@@ -366,14 +366,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
bool System.ISpanFormattable.TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : true;
}
///
bool System.IUtf8SpanFormattable.TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug589_Vogen_does_not_ignore_irrelevant_assembly_attributes.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug589_Vogen_does_not_ignore_irrelevant_assembly_attributes.Test.verified.txt
index 6dc4a3524f..8822c64b17 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug589_Vogen_does_not_ignore_irrelevant_assembly_attributes.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug589_Vogen_does_not_ignore_irrelevant_assembly_attributes.Test.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
index 6226473540..c6602b303e 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
@@ -527,14 +527,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug625_EFCoreConverters_uses_wrong_marker_interface_name.A_marker_interface_not_named_EfCoreConverters_is_still_referenced_and_that_name_is_used_in_the_generated_code.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug625_EFCoreConverters_uses_wrong_marker_interface_name.A_marker_interface_not_named_EfCoreConverters_is_still_referenced_and_that_name_is_used_in_the_generated_code.verified.txt
index a1faed30f2..a49b20ecd3 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug625_EFCoreConverters_uses_wrong_marker_interface_name.A_marker_interface_not_named_EfCoreConverters_is_still_referenced_and_that_name_is_used_in_the_generated_code.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug625_EFCoreConverters_uses_wrong_marker_interface_name.A_marker_interface_not_named_EfCoreConverters_is_still_referenced_and_that_name_is_used_in_the_generated_code.verified.txt
@@ -663,14 +663,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
@@ -1714,14 +1714,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug673_nullability_override.When_deriving_from_a_record_it_matches_the_override_for_the_records_ToString.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug673_nullability_override.When_deriving_from_a_record_it_matches_the_override_for_the_records_ToString.verified.txt
index ee25c13860..b2b6ba4051 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug673_nullability_override.When_deriving_from_a_record_it_matches_the_override_for_the_records_ToString.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v8.0/Bug673_nullability_override.When_deriving_from_a_record_it_matches_the_override_for_the_records_ToString.verified.txt
@@ -545,14 +545,14 @@ private readonly global::System.Diagnostics.StackTrace? _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
index 1cd6adf21c..9b2f723097 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug575_AttributesWithArraysBreaksGenerator.Test.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
index 0a439d4da6..5b28c943b9 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug581_StjDeserializer_throws_correct_exception.Test.verified.txt
@@ -366,14 +366,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
bool System.ISpanFormattable.TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : true;
}
///
bool System.IUtf8SpanFormattable.TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
index 6226473540..c6602b303e 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-v9.0/Bug595_AttributesWithArraysBreaksGenerator.Test.verified.txt
@@ -527,14 +527,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug604_Swashbuckle_has_missing_namespaces_for_the_vo.Test.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug604_Swashbuckle_has_missing_namespaces_for_the_vo.Test.verified.txt
index be6a9c14a7..8675390deb 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug604_Swashbuckle_has_missing_namespaces_for_the_vo.Test.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug604_Swashbuckle_has_missing_namespaces_for_the_vo.Test.verified.txt
@@ -569,14 +569,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug608_swashbuckle_mappingTests.Used_to_treat_non_primitives_as_objects_but_now_treats_IParsable_as_strings.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug608_swashbuckle_mappingTests.Used_to_treat_non_primitives_as_objects_but_now_treats_IParsable_as_strings.verified.txt
index 7b1dc09751..6319225068 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug608_swashbuckle_mappingTests.Used_to_treat_non_primitives_as_objects_but_now_treats_IParsable_as_strings.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug608_swashbuckle_mappingTests.Used_to_treat_non_primitives_as_objects_but_now_treats_IParsable_as_strings.verified.txt
@@ -407,14 +407,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
bool System.ISpanFormattable.TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : true;
}
///
bool System.IUtf8SpanFormattable.TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("GuidFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_global_config_should_not_write_a_primitive_cast_to_wrapper.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_global_config_should_not_write_a_primitive_cast_to_wrapper.verified.txt
index 9ecc67df22..b4773e35bd 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_global_config_should_not_write_a_primitive_cast_to_wrapper.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_global_config_should_not_write_a_primitive_cast_to_wrapper.verified.txt
@@ -631,14 +631,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_value_object_config_should_write_a_primitive_cast.verified.txt b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_value_object_config_should_write_a_primitive_cast.verified.txt
index aaae9d7d8f..4de4aff9bc 100644
--- a/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_value_object_config_should_write_a_primitive_cast.verified.txt
+++ b/tests/SnapshotTests/BugFixes/snapshots/snap-vAspNetCore8.0/Bug610_Inconsistent_casting.Setting_implicit_casting_to_primitive_in_value_object_config_should_write_a_primitive_cast.verified.txt
@@ -530,14 +530,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_002d5cd48fe758aa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_002d5cd48fe758aa.verified.txt
index e11064b6d9..9cf421510b 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_002d5cd48fe758aa.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_002d5cd48fe758aa.verified.txt
@@ -282,14 +282,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
bool System.ISpanFormattable.TryFormat(global::System.Span destination, out int charsWritten, global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : true;
}
///
bool System.IUtf8SpanFormattable.TryFormat(global::System.Span utf8Destination, out int bytesWritten, global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_003d2d0cb66151e4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_003d2d0cb66151e4.verified.txt
index 5bcf4ddc15..8d64e203d9 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_003d2d0cb66151e4.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_003d2d0cb66151e4.verified.txt
@@ -440,14 +440,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_00e96f66fdf0ffcd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_00e96f66fdf0ffcd.verified.txt
index 2c2e95ead8..918dfd3776 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_00e96f66fdf0ffcd.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_00e96f66fdf0ffcd.verified.txt
@@ -545,14 +545,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0116620100e4fd9a.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0116620100e4fd9a.verified.txt
index 082695ffe1..6339c722dc 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0116620100e4fd9a.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0116620100e4fd9a.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_012fbd76e82e3f04.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_012fbd76e82e3f04.verified.txt
index 103d29e0da..7ea3ef541c 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_012fbd76e82e3f04.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_012fbd76e82e3f04.verified.txt
@@ -529,14 +529,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_013db1f2eef4f91e.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_013db1f2eef4f91e.verified.txt
index 28b780bbd6..75b54fc06b 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_013db1f2eef4f91e.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_013db1f2eef4f91e.verified.txt
@@ -544,14 +544,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_01401de07f3182bc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_01401de07f3182bc.verified.txt
index 4656e85ced..8d435ba12e 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_01401de07f3182bc.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_01401de07f3182bc.verified.txt
@@ -547,14 +547,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0289f598fd443b1b.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0289f598fd443b1b.verified.txt
index 3896dd2ae8..9a65ba05b9 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0289f598fd443b1b.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0289f598fd443b1b.verified.txt
@@ -424,14 +424,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02a550ee02020578.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02a550ee02020578.verified.txt
index df9a569672..d57dc41f79 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02a550ee02020578.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02a550ee02020578.verified.txt
@@ -532,14 +532,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02e20d7371e19230.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02e20d7371e19230.verified.txt
index 6797cbafd6..cfaa0714c2 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02e20d7371e19230.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_02e20d7371e19230.verified.txt
@@ -543,14 +543,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03359f6288338ab7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03359f6288338ab7.verified.txt
index 9177c7d618..008fd15848 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03359f6288338ab7.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03359f6288338ab7.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03822c9f0e7deb11.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03822c9f0e7deb11.verified.txt
index 735056358e..9171f1fcac 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03822c9f0e7deb11.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03822c9f0e7deb11.verified.txt
@@ -426,14 +426,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03f8e839d8e284cb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03f8e839d8e284cb.verified.txt
index ed07e6f61d..c33bbb6676 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03f8e839d8e284cb.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03f8e839d8e284cb.verified.txt
@@ -530,14 +530,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03fc21edf421ede7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03fc21edf421ede7.verified.txt
index 4e0dd38664..c227a9ad4e 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03fc21edf421ede7.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_03fc21edf421ede7.verified.txt
@@ -532,14 +532,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_040f1bd3bf23f4fb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_040f1bd3bf23f4fb.verified.txt
index b2c06b2aaf..3649705b8b 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_040f1bd3bf23f4fb.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_040f1bd3bf23f4fb.verified.txt
@@ -422,14 +422,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_042a5ffde11af2ec.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_042a5ffde11af2ec.verified.txt
index 17a7645988..7c0e431fef 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_042a5ffde11af2ec.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_042a5ffde11af2ec.verified.txt
@@ -549,14 +549,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04677d6c7f10ed16.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04677d6c7f10ed16.verified.txt
index 41ccc1c699..24da9f001d 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04677d6c7f10ed16.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04677d6c7f10ed16.verified.txt
@@ -543,14 +543,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0491737f093e26d7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0491737f093e26d7.verified.txt
index 1a4faa9cb6..23635ed84c 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0491737f093e26d7.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0491737f093e26d7.verified.txt
@@ -262,14 +262,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
bool System.ISpanFormattable.TryFormat(global::System.Span destination, out int charsWritten, global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.ISpanFormattable).TryFormat(destination, out charsWritten, format, provider) : true;
}
///
bool System.IUtf8SpanFormattable.TryFormat(global::System.Span utf8Destination, out int bytesWritten, global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? (Value as System.IUtf8SpanFormattable).TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04a077b65b8f5d8b.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04a077b65b8f5d8b.verified.txt
index 4502c836d3..3e78930022 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04a077b65b8f5d8b.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04a077b65b8f5d8b.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04b7c83e89b12fd3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04b7c83e89b12fd3.verified.txt
index 0b9bc20c4b..83e59e341b 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04b7c83e89b12fd3.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04b7c83e89b12fd3.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04ea23c5595cb8e3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04ea23c5595cb8e3.verified.txt
index 278d4331fb..9db122ca33 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04ea23c5595cb8e3.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_04ea23c5595cb8e3.verified.txt
@@ -423,14 +423,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_050c26fae61c53ab.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_050c26fae61c53ab.verified.txt
index 125ff0cac0..284cc22790 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_050c26fae61c53ab.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_050c26fae61c53ab.verified.txt
@@ -544,14 +544,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0519fccfe1fe9064.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0519fccfe1fe9064.verified.txt
index 2021f51007..5ba38c8ace 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0519fccfe1fe9064.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0519fccfe1fe9064.verified.txt
@@ -533,14 +533,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0551d8ef7b81bc47.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0551d8ef7b81bc47.verified.txt
index 2a7c97474c..bcad0350a8 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0551d8ef7b81bc47.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0551d8ef7b81bc47.verified.txt
@@ -549,14 +549,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05a3572c175fa848.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05a3572c175fa848.verified.txt
index 8087bcb338..bca1b827d0 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05a3572c175fa848.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05a3572c175fa848.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05ec053f3ab84d9f.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05ec053f3ab84d9f.verified.txt
index e844603c4d..7c1ee67b0b 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05ec053f3ab84d9f.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05ec053f3ab84d9f.verified.txt
@@ -533,14 +533,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05eed801871b7f26.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05eed801871b7f26.verified.txt
index 0a9000e12d..d0c3e91f37 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05eed801871b7f26.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_05eed801871b7f26.verified.txt
@@ -439,14 +439,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0607d7304535f83e.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0607d7304535f83e.verified.txt
index dbd843a8eb..ecab8bc77c 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0607d7304535f83e.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0607d7304535f83e.verified.txt
@@ -438,14 +438,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_06321a22058a68d4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_06321a22058a68d4.verified.txt
index a7c55e7cd1..cbcd168aae 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_06321a22058a68d4.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_06321a22058a68d4.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0679898d7724c514.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0679898d7724c514.verified.txt
index d4bb39004b..0491760f53 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0679898d7724c514.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0679898d7724c514.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_069111ded709ffca.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_069111ded709ffca.verified.txt
index f9af23ec42..f9d933584e 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_069111ded709ffca.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_069111ded709ffca.verified.txt
@@ -547,14 +547,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07152ddef446017a.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07152ddef446017a.verified.txt
index 918ff81967..c0e8cdd0f3 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07152ddef446017a.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07152ddef446017a.verified.txt
@@ -423,14 +423,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_074a789fc2cbeb86.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_074a789fc2cbeb86.verified.txt
index 927357cf71..cb765424e0 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_074a789fc2cbeb86.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_074a789fc2cbeb86.verified.txt
@@ -545,14 +545,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0785770b3467d282.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0785770b3467d282.verified.txt
index 225d8d2b1f..9d953df613 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0785770b3467d282.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0785770b3467d282.verified.txt
@@ -544,14 +544,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793e334fc6ef863.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793e334fc6ef863.verified.txt
index eef485c2f8..eac4bb5af5 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793e334fc6ef863.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793e334fc6ef863.verified.txt
@@ -424,14 +424,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793f8891f5a59e8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793f8891f5a59e8.verified.txt
index cea9cd0ff4..23e4afc82a 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793f8891f5a59e8.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0793f8891f5a59e8.verified.txt
@@ -442,14 +442,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07b2e0ae432f019d.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07b2e0ae432f019d.verified.txt
index c5303d52b9..b180c8c036 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07b2e0ae432f019d.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_07b2e0ae432f019d.verified.txt
@@ -548,14 +548,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08412de94ddea904.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08412de94ddea904.verified.txt
index d8bb5e04d2..c353c0b3e2 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08412de94ddea904.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08412de94ddea904.verified.txt
@@ -528,14 +528,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_086efd374d152dbb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_086efd374d152dbb.verified.txt
index d9c0085063..d0b305d304 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_086efd374d152dbb.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_086efd374d152dbb.verified.txt
@@ -532,14 +532,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08b8c765370bf76f.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08b8c765370bf76f.verified.txt
index 18a9711ee5..b270032e67 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08b8c765370bf76f.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08b8c765370bf76f.verified.txt
@@ -532,14 +532,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08d4579b70b3647d.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08d4579b70b3647d.verified.txt
index 1626a6aa18..37b4c95800 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08d4579b70b3647d.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_08d4579b70b3647d.verified.txt
@@ -438,14 +438,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_092e0e87f53882f7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_092e0e87f53882f7.verified.txt
index 82db563b84..e3ef96b88f 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_092e0e87f53882f7.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_092e0e87f53882f7.verified.txt
@@ -543,14 +543,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09a9f0db4d759d83.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09a9f0db4d759d83.verified.txt
index 9f83fe6d00..79894f0394 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09a9f0db4d759d83.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09a9f0db4d759d83.verified.txt
@@ -543,14 +543,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, provider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09b82a466b556566.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09b82a466b556566.verified.txt
index 40a66e5bcd..309b0c4f3d 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09b82a466b556566.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_09b82a466b556566.verified.txt
@@ -427,14 +427,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, formatProvider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("DateTimeFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider formatProvider)
{
bytesWritten = default;
- return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : false;
+ return IsInitialized() ? Value.TryFormat(utf8Destination, out bytesWritten, format, formatProvider) : true;
}
#nullable restore
diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0a52ec62740f823d.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0a52ec62740f823d.verified.txt
index 880956fcb0..8e220152fb 100644
--- a/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0a52ec62740f823d.verified.txt
+++ b/tests/SnapshotTests/Casting/snapshots/snap-v8.0/CastingGenerationTests.Can_specify_casting_at_the_global_config_level_0a52ec62740f823d.verified.txt
@@ -543,14 +543,14 @@ private readonly global::System.Diagnostics.StackTrace _stackTrace = null!;
public bool TryFormat(global::System.Span destination, out int charsWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan format, global::System.IFormatProvider provider)
{
charsWritten = default;
- return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : false;
+ return IsInitialized() ? Value.TryFormat(destination, out charsWritten, format, provider) : true;
}
///
public bool TryFormat(global::System.Span utf8Destination, out int bytesWritten, [System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("NumericFormat")] global::System.ReadOnlySpan