Create and use constructors in Skippers

This commit is contained in:
Matt Nadareski
2024-02-29 01:27:16 -05:00
parent 57b0362d31
commit 78ff313ddc
15 changed files with 117 additions and 371 deletions

View File

@@ -84,6 +84,18 @@ namespace SabreTools.Skippers
#endregion
/// <summary>
/// Constructor
/// </summary>
public Rule(string? startOffset, string? endOffset, HeaderSkipOperation operation, Test[]? tests, string? sourceFile)
{
StartOffset = startOffset;
EndOffset = endOffset;
Operation = operation;
Tests = tests;
SourceFile = sourceFile;
}
/// <summary>
/// Check if a Stream passes all tests in the Rule
/// </summary>