Skip to content

Commit

Permalink
refactor: make InputEvaluation internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d committed May 29, 2024
1 parent ffe0c0a commit 9ddba24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Vonage/Common/Validation/InputEvaluation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

namespace Vonage.Common.Validation;

public readonly struct InputEvaluation<T>
internal readonly struct InputEvaluation<T>
{
private readonly T source;
private InputEvaluation(T source) => this.source = source;

public static InputEvaluation<T> Evaluate(T source) => new(source);

public static InputEvaluation<T> Evaluate(T source) => new InputEvaluation<T>(source);
public Result<T> WithRules(params Func<T, Result<T>>[] parsingRules)
{
var copy = this.source;
Expand Down

0 comments on commit 9ddba24

Please sign in to comment.