Struct ParseResult
dto used to hold the result of a value parsing operation
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public struct ParseResult
Constructors
ParseResult(bool, object?)
constructor for initializing a ParseResult instance
Declaration
public ParseResult(bool isSuccess, object? value)
Parameters
Type | Name | Description |
---|---|---|
bool | isSuccess | set to true of parsing was successful |
object | value | set the value that was obtained from the parsing operation |
Properties
IsSuccess
will be true if the parsing operation was a success
Declaration
public bool IsSuccess { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
Value
will hold the parsed value if the parsing was successful
Declaration
public object? Value { readonly get; set; }
Property Value
Type | Description |
---|---|
object |