Skip to content

Commit 46bc9c8

Browse files
committed
Marked several public APIs as obsolete or "pubternal".
1 parent 794cd2d commit 46bc9c8

File tree

488 files changed

+8223
-3715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

488 files changed

+8223
-3715
lines changed

samples/Newtonsoft.Json.AspNetCore.Samples/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ private static Task StartServerAsync(ILoggerFactory loggerFactory)
9292
.ConfigureServices(collection =>
9393
{
9494
collection.AddSingleton(loggerFactory);
95-
collection.AddControllers(options => options.ModelBinderProviders.Insert(0, new ValueObjectModelBinderProvider()))
96-
.AddNewtonsoftJson(options => options.SerializerSettings.Converters.Add(new ValueObjectNewtonsoftJsonConverter()));
95+
collection.AddControllers(options => options.ModelBinderProviders.Insert(0, new ThinktectureModelBinderProvider()))
96+
.AddNewtonsoftJson(options => options.SerializerSettings.Converters.Add(new ThinktectureNewtonsoftJsonConverterFactory()));
9797
})
9898
.Build();
9999

samples/Thinktecture.Runtime.Extensions.AspNetCore.Samples/Program.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static async Task DoHttpRequestsAsync(ILogger logger, bool forMinimalWeb
5555
await DoRequestAsync(logger, client, "productType?productType=groceries");
5656
await DoRequestAsync(logger, client, "productType", "groceries");
5757
await DoRequestAsync(logger, client, "productType/invalid"); // invalid
58-
await DoRequestAsync(logger, client, "boundaryWithFactories/1:2"); // uses custom factory "[ValueObjectFactory<string>]"
58+
await DoRequestAsync(logger, client, "boundaryWithFactories/1:2"); // uses custom factory "[ObjectFactory<string>]"
5959
await DoRequestAsync(logger, client, "boundaryWithFactories/invalid"); // invalid
6060

6161
if (forMinimalWebApi)
@@ -132,8 +132,8 @@ private static Task StartServerAsync(ILoggerFactory loggerFactory)
132132
collection.AddSingleton(loggerFactory)
133133
.AddSingleton<EmailNotificationSender>()
134134
.AddSingleton<SmsNotificationSender>();
135-
collection.AddControllers(options => options.ModelBinderProviders.Insert(0, new ValueObjectModelBinderProvider()))
136-
.AddJsonOptions(options => options.JsonSerializerOptions.Converters.Add(new ValueObjectJsonConverterFactory()));
135+
collection.AddControllers(options => options.ModelBinderProviders.Insert(0, new ThinktectureModelBinderProvider()))
136+
.AddJsonOptions(options => options.JsonSerializerOptions.Converters.Add(new ThinktectureJsonConverterFactory()));
137137
})
138138
.Build();
139139

@@ -149,7 +149,7 @@ private static Task StartMinimalWebApiAsync(ILoggerFactory loggerFactory)
149149
.AddSingleton<SmsNotificationSender>()
150150
.ConfigureHttpJsonOptions(options =>
151151
{
152-
options.SerializerOptions.Converters.Add(new ValueObjectJsonConverterFactory());
152+
options.SerializerOptions.Converters.Add(new ThinktectureJsonConverterFactory());
153153
});
154154

155155
var app = builder.Build();

samples/Thinktecture.Runtime.Extensions.AspNetCore.Samples/Validation/BoundValueObject.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Thinktecture.Validation;
55

66
public class BoundValueObject<T, TKey, TValidationError> : IBoundParam
7-
where T : IValueObjectFactory<T, TKey, TValidationError>
7+
where T : IObjectFactory<T, TKey, TValidationError>
88
where TKey : IParsable<TKey>
99
where TValidationError : class, IValidationError<TValidationError>
1010
{
@@ -48,7 +48,7 @@ public static bool TryParse(string s, IFormatProvider? formatProvider, out Bound
4848
}
4949

5050
public class BoundValueObject<T, TValidationError> : IBoundParam
51-
where T : IValueObjectFactory<T, string, TValidationError>
51+
where T : IObjectFactory<T, string, TValidationError>
5252
where TValidationError : class, IValidationError<TValidationError>
5353
{
5454
private readonly T? _item;

samples/Thinktecture.Runtime.Extensions.Benchmarking/BenchmarkContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public BenchmarkContext()
1818
.AddDbContext<BenchmarkDbContext>(builder => builder
1919
.UseSqlServer("Server=localhost;Database=TT_RE_Benchmarking;Integrated Security=true;TrustServerCertificate=true;")
2020
.UseLoggerFactory(NullLoggerFactory.Instance)
21-
.UseValueObjectValueConverter());
21+
.UseThinktectureValueConverters());
2222

2323
RootServiceProvider = services.BuildServiceProvider();
2424
}

samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/Description.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture.Database;
44

55
[ValueObject<string>]
6-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
6+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
88
public partial class Description
99
{
1010
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string value)

samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/DescriptionStruct.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture.Database;
44

55
[ValueObject<string>]
6-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
6+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
88
public partial struct DescriptionStruct
99
{
1010
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string value)

samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/Name.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture.Database;
44

55
[ValueObject<string>]
6-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
6+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
88
public partial class Name
99
{
1010
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string value)

samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/NameStruct.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture.Database;
44

55
[ValueObject<string>]
6-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
6+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
88
public partial struct NameStruct
99
{
1010
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string value)

samples/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Samples/ProductsDbContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
2929
});
3030

3131
// Alternative way to apply ValueConverters to Smart Enums and Value Objects
32-
// modelBuilder.AddValueObjectConverters(validateOnWrite: true,
32+
// modelBuilder.AddThinktectureValueConverters(validateOnWrite: true,
3333
// configureEnumsAndKeyedValueObjects: property =>
3434
// {
3535
// if (property.ClrType == typeof(ProductType))

samples/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Samples/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private static IServiceProvider CreateServiceProvider(LoggingLevelSwitch logging
180180
})
181181
.AddDbContext<ProductsDbContext>(builder => builder.UseSqlServer("Server=localhost;Database=TT-Runtime-Extensions-Demo;Integrated Security=true;TrustServerCertificate=true")
182182
.EnableSensitiveDataLogging()
183-
.UseValueObjectValueConverter(configureEnumsAndKeyedValueObjects: property =>
183+
.UseThinktectureValueConverters(configureEnumsAndKeyedValueObjects: property =>
184184
{
185185
if (property.ClrType == typeof(ProductType))
186186
{

samples/Thinktecture.Runtime.Extensions.MessagePack.Samples/ProductNameWithMessagePackFormatter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture;
44

55
[ValueObject<string>(NullInFactoryMethodsYieldsNull = true)]
6-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
6+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
7+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
88
public partial class ProductNameWithMessagePackFormatter
99
{
1010
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string value)

samples/Thinktecture.Runtime.Extensions.MessagePack.Samples/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
var textOrNumberWithFormatter = DoRoundTripSerialization((TextOrNumberSerializableWithFormatter)42);
3232
Console.WriteLine(textOrNumberWithFormatter);
3333

34-
// Smart Enums and Value Objects without [MessagePackFormatterAttribute] need "ValueObjectMessageFormatterResolver".
34+
// Smart Enums and Value Objects without [MessagePackFormatterAttribute] need "ThinktectureMessageFormatterResolver".
3535
static T DoRoundTripSerializationOfTypesWithoutFormatter<T>(T obj)
3636
{
37-
var resolver = CompositeResolver.Create(ValueObjectMessageFormatterResolver.Instance, StandardResolver.Instance);
37+
var resolver = CompositeResolver.Create(ThinktectureMessageFormatterResolver.Instance, StandardResolver.Instance);
3838
var options = MessagePackSerializerOptions.Standard.WithResolver(resolver);
3939

4040
var bytes = MessagePackSerializer.Serialize(obj, options, CancellationToken.None);

samples/Thinktecture.Runtime.Extensions.MessagePack.Samples/TextOrNumberSerializableWithFormatter.cs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Diagnostics.CodeAnalysis;
33
using MessagePack;
4+
using Thinktecture.Formatters;
45

56
namespace Thinktecture;
67

@@ -9,12 +10,12 @@ namespace Thinktecture;
910
T2Name = "Number",
1011
SwitchMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads,
1112
MapMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads)]
12-
[ValueObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
13-
[MessagePackFormatter(typeof(Formatters.ValueObjectMessagePackFormatter<TextOrNumberSerializableWithFormatter, string, ValidationError>))] // Optional: otherwise ValueObjectMessageFormatterResolver is required
13+
[ObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
14+
[MessagePackFormatter(typeof(ThinktectureMessagePackFormatter<TextOrNumberSerializableWithFormatter, string, ValidationError>))]
1415
public partial class TextOrNumberSerializableWithFormatter :
15-
IValueObjectFactory<TextOrNumberSerializableWithFormatter, string, ValidationError>, // For deserialization
16-
IValueObjectConvertible<string>, // For serialization
17-
IParsable<TextOrNumberSerializableWithFormatter> // For Minimal API and ASP.NET Core model binding validation
16+
IObjectFactory<TextOrNumberSerializableWithFormatter, string, ValidationError>, // For deserialization
17+
IConvertible<string>, // For serialization
18+
IParsable<TextOrNumberSerializableWithFormatter> // For Minimal API and ASP.NET Core model binding validation
1819
{
1920
// For serialization
2021
public string ToValue()

samples/Thinktecture.Runtime.Extensions.Samples/SmartEnums/ProductCategoryWithCaseSensitiveComparer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace Thinktecture.SmartEnums;
22

33
[SmartEnum<string>]
4-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinal, string>]
5-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinal, string>]
4+
[KeyMemberComparer<ComparerAccessors.StringOrdinal, string>]
5+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinal, string>]
66
public partial class ProductCategoryWithCaseSensitiveComparer
77
{
88
public static readonly ProductCategoryWithCaseSensitiveComparer FruitsLowerCased = new("fruits");

samples/Thinktecture.Runtime.Extensions.Samples/SmartEnums/ProductType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace Thinktecture.SmartEnums;
22

33
[SmartEnum<string>(SwitchMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads,
44
MapMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads)]
5-
[ValueObjectValidationError<ProductTypeValidationError>]
5+
[ValidationError<ProductTypeValidationError>]
66
public partial class ProductType
77
{
88
public static readonly ProductType Groceries = new("Groceries");

samples/Thinktecture.Runtime.Extensions.Samples/SmartEnums/SmartEnumDemos.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ private static void DemoForSmartEnum(ILogger logger)
4444
ProductType.Get("Unknown");
4545
logger.Warning("This line won't be reached.");
4646
}
47-
catch (UnknownEnumIdentifierException)
47+
catch (UnknownSmartEnumIdentifierException)
4848
{
49-
logger.Information("UnknownEnumIdentifierException is thrown because there is no product type with the key 'Unknown'.");
49+
logger.Information("UnknownSmartEnumIdentifierException is thrown because there is no product type with the key 'Unknown'.");
5050
}
5151

5252
// Conversion to key type (throws if invalid)
@@ -342,7 +342,7 @@ private static void DemoForMonthlySalesCsvImporterType(ILogger logger)
342342
}
343343

344344
private static void PrintAllItems<T, TKey, TValidationError>(ILogger logger)
345-
where T : IEnum<TKey, T, TValidationError>
345+
where T : ISmartEnum<TKey, T, TValidationError>
346346
where TKey : notnull
347347
where TValidationError : class, IValidationError<TValidationError>
348348
{
@@ -355,7 +355,7 @@ private static void PrintAllItems<T, TKey, TValidationError>(ILogger logger)
355355
}
356356

357357
private static void Get<T, TKey, TValidationError>(ILogger logger, TKey key)
358-
where T : IEnum<TKey, T, TValidationError>
358+
where T : ISmartEnum<TKey, T, TValidationError>
359359
where TKey : notnull
360360
where TValidationError : class, IValidationError<TValidationError>
361361
{

samples/Thinktecture.Runtime.Extensions.Samples/Unions/Animal.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public override string ToString()
1919
}
2020

2121
[ValueObject<string>]
22-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
23-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
22+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
23+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
2424
public partial class Dog : Animal;
2525

2626
public sealed class Cat : Animal

samples/Thinktecture.Runtime.Extensions.Samples/Unions/DiscriminatedUnionsDemos.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static void SerializationDemoForAdHocUnions(ILogger logger)
8989
TextOrNumberSerializable textOrNumberFromString = "text";
9090
TextOrNumberSerializable textOrNumberFromInt = 42;
9191

92-
var jsonOptions = new JsonSerializerOptions { Converters = { new ValueObjectJsonConverterFactory() } };
92+
var jsonOptions = new JsonSerializerOptions{ Converters = { new ThinktectureJsonConverterFactory() }};
9393

9494
var json = JsonSerializer.Serialize(textOrNumberFromString, jsonOptions);
9595
var deserializedTextOrNumber = JsonSerializer.Deserialize<TextOrNumberSerializable>(json, jsonOptions);

samples/Thinktecture.Runtime.Extensions.Samples/Unions/Jurisdiction.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace Thinktecture.Unions;
77
public abstract partial class Jurisdiction
88
{
99
[ValueObject<string>(KeyMemberName = "IsoCode")]
10-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>] // case-insensitive comparison
11-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
10+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>] // case-insensitive comparison
11+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
1212
public partial class Country : Jurisdiction
1313
{
1414
static partial void ValidateFactoryArguments(ref ValidationError? validationError, ref string isoCode)
@@ -33,8 +33,8 @@ static partial void ValidateFactoryArguments(ref ValidationError? validationErro
3333
public partial class FederalState : Jurisdiction;
3434

3535
[ValueObject<string>(KeyMemberName = "Name")]
36-
[ValueObjectKeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>] // case-insensitive comparison
37-
[ValueObjectKeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
36+
[KeyMemberEqualityComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>] // case-insensitive comparison
37+
[KeyMemberComparer<ComparerAccessors.StringOrdinalIgnoreCase, string>]
3838
public partial class District : Jurisdiction;
3939

4040
/// <summary>

samples/Thinktecture.Runtime.Extensions.Samples/Unions/TextOrNumberSerializable.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ namespace Thinktecture.Unions;
99
T2Name = "Number",
1010
SwitchMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads,
1111
MapMethods = SwitchMapMethodsGeneration.DefaultWithPartialOverloads)]
12-
[ValueObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
13-
[JsonConverter(typeof(ValueObjectJsonConverterFactory<TextOrNumberSerializable, string, ValidationError>))] // Optional: otherwise ValueObjectJsonConverterFactory is required
12+
[ObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
13+
[JsonConverter(typeof(ThinktectureJsonConverterFactory<TextOrNumberSerializable, string, ValidationError>))]
1414
public partial class TextOrNumberSerializable :
15-
IValueObjectFactory<TextOrNumberSerializable, string, ValidationError>, // For deserialization
16-
IValueObjectConvertible<string>, // For serialization
15+
IObjectFactory<TextOrNumberSerializable, string, ValidationError>, // For deserialization
16+
IConvertible<string>, // For serialization
1717
IParsable<TextOrNumberSerializable> // For Minimal API and ASP.NET Core model binding validation
1818
{
1919
// For serialization

samples/Thinktecture.Runtime.Extensions.Samples/ValueObjects/Boundary.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Thinktecture.ValueObjects;
22

33
[ComplexValueObject]
4-
[ValueObjectValidationError<BoundaryValidationError>]
4+
[ValidationError<BoundaryValidationError>]
55
public partial class Boundary
66
{
77
public decimal Lower { get; }

samples/Thinktecture.Runtime.Extensions.Samples/ValueObjects/BoundaryWithFactories.cs

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Thinktecture.ValueObjects;
44

55
[ComplexValueObject]
6-
[ValueObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
7-
[ValueObjectFactory<ValueTuple<int, int>>]
6+
[ObjectFactory<string>(UseForSerialization = SerializationFrameworks.All)]
7+
[ObjectFactory<ValueTuple<int, int>>]
88
public partial class BoundaryWithFactories
99
{
1010
public decimal Lower { get; }
@@ -19,8 +19,8 @@ static partial void ValidateFactoryArguments(ref ValidationError? validationErro
1919
}
2020

2121
/// <summary>
22-
/// Custom implementation of "IValueObjectFactory&lt;Boundary, string&gt;"
23-
/// requested by "ValueObjectFactory&lt;string&gt;".
22+
/// Custom implementation of "IObjectFactory&lt;Boundary, string&gt;"
23+
/// requested by "ObjectFactory&lt;string&gt;".
2424
/// </summary>
2525
public static ValidationError? Validate(string? value, IFormatProvider? provider, out BoundaryWithFactories? item)
2626
{
@@ -41,16 +41,15 @@ static partial void ValidateFactoryArguments(ref ValidationError? validationErro
4141
}
4242

4343
/// <summary>
44-
/// Custom implementation of "IValueObjectConvertible&amp;lt;string&amp;gt;"
45-
/// requested by "ValueObjectFactory&lt;string&gt;".
44+
/// Custom implementation of "IConvertible&amp;lt;string&amp;gt;"
4645
/// </summary>
4746
public string ToValue()
4847
{
4948
return $"{Lower}:{Upper}";
5049
}
5150

5251
/// <summary>
53-
/// Custom implementation of "IValueObjectFactory&lt;Boundary, (int, int)&gt;"
52+
/// Custom implementation of "IObjectFactory&lt;Boundary, (int, int)&gt;"
5453
/// </summary>
5554
public static ValidationError? Validate((int, int) value, IFormatProvider? provider, out BoundaryWithFactories? item)
5655
{

samples/Thinktecture.Runtime.Extensions.Samples/ValueObjects/ComplexValueObjectWithCustomEqualityComparison.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Thinktecture.ValueObjects;
55
[ComplexValueObject(SkipToString = true, DefaultStringComparison = StringComparison.OrdinalIgnoreCase)]
66
public partial class ComplexValueObjectWithCustomEqualityComparison
77
{
8-
[ValueObjectMemberEqualityComparer<ComparerAccessors.StringOrdinal, string>]
8+
[MemberEqualityComparer<ComparerAccessors.StringOrdinal, string>]
99
public string Identifier { get; }
1010

1111
public string Name { get; } // unused in comparisons

0 commit comments

Comments
 (0)