Skip to content

Commit

Permalink
Virtualize functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed Aug 3, 2023
1 parent b87cc51 commit 130914a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConfigFactory.Core/ConfigModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ public virtual void Save()
}
}

public bool Validate() => Validate(out _, out _);
public bool Validate(out string? message) => Validate(out message, out _);
public bool Validate(out string? message, out ConfigProperty target)
public virtual bool Validate() => Validate(out _, out _);
public virtual bool Validate(out string? message) => Validate(out message, out _);
public virtual bool Validate(out string? message, out ConfigProperty target)
{
foreach ((var name, (var validate, var errorMessage)) in Validators) {
target = Properties[name];
Expand Down

0 comments on commit 130914a

Please sign in to comment.