Struct FileFormatValidationResult
Represents the result of validating a file's content against a FileFormat.
Implements
Namespace: FulcrumFS
Assembly: FulcrumFS.Core.dll
Syntax
public readonly record struct FileFormatValidationResult : IEquatable<FileFormatValidationResult>
Properties
| Name | Description |
|---|---|
| ErrorMessage | Gets the error message describing why validation failed, or null if validation succeeded. |
| IsValid | Gets a value indicating whether validation succeeded. Returns true if the file content matches the expected file format; otherwise, false, in which case ErrorMessage contains a description of why validation failed. |
| Success | Gets a FileFormatValidationResult representing a successful (valid) validation. |
Methods
| Name | Description |
|---|---|
| Invalid(string) | Creates a FileFormatValidationResult representing a failed (invalid) validation with the specified error message. |
| ToString() | Returns the fully qualified type name of this instance. |