Skip to content

Commit

Permalink
Make type extensions public.
Browse files Browse the repository at this point in the history
  • Loading branch information
jscarle committed Oct 24, 2024
1 parent f5c57cd commit f93def7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LightResults.Extensions.ValueObjects/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace LightResults.Extensions.ValueObjects;

internal static class TypeExtensions
public static class TypeExtensions
{
public static bool IsValueObjectType([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] this Type type, out Type valueObjectType)
{
ArgumentNullException.ThrowIfNull(type);

var valueObjectInterface = type.GetGenericInterfaceOrDefault(typeof(IValueObject<,>));
if (valueObjectInterface is null && type.IsValueType)
{
Expand Down

0 comments on commit f93def7

Please sign in to comment.