zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Specifications/Builder/SpecificationBuilder.cs

13 lines
523 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
namespace ZeroFramework.DeviceCenter.Domain.Specifications.Builder
{
public class SpecificationBuilder<T, TResult>(Specification<T, TResult> specification) : SpecificationBuilder<T>(specification), ISpecificationBuilder<T, TResult>
{
public new Specification<T, TResult> Specification { get; } = specification;
}
public class SpecificationBuilder<T>(Specification<T> specification) : ISpecificationBuilder<T>
{
public Specification<T> Specification { get; } = specification;
}
}