Struct ValidationMessage<TResource>
- Namespace
- LfrlAnvil.Validation
- Assembly
- LfrlAnvil.Validation.dll
A lightweight generic, potentially parameterized, validation message.
public readonly struct ValidationMessage<TResource>
Type Parameters
TResource
Resource type.
- Inherited Members
Constructors
ValidationMessage(TResource, params object?[]?)
Creates a new ValidationMessage<TResource> instance.
public ValidationMessage(TResource resource, params object?[]? parameters)
Parameters
resource
TResourceResource.
parameters
object[]Optional range of parameters.
Properties
Parameters
Optional range of parameters.
public object?[]? Parameters { get; }
Property Value
- object[]
Resource
Resource or key of this message.
public TResource Resource { get; }
Property Value
- TResource
Methods
ToString()
Returns a string representation of this ValidationMessage<TResource> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.