HelpersType
PackageFCQRS.Model
Helper methods for creating FCQRS.Model types from C#
Specification
Kind
Type
Members
4
Examples
0
CreateLongStringSignature
Helpers.CreateLongString(s)
CreateShortStringSignature
Helpers.CreateShortString(s)
TryCreateLongStringSignature
Helpers.TryCreateLongString(s)
TryCreateShortStringSignature
Helpers.TryCreateShortString(s)
Summary
| Name | Signature | Synopsis |
|---|---|---|
| CreateLongString | Helpers.CreateLongString(s) | Create a LongString from a string (throws on failure) |
| CreateShortString | Helpers.CreateShortString(s) | Create a ShortString from a string (throws on failure) |
| TryCreateLongString | Helpers.TryCreateLongString(s) | Try to create a LongString (returns Result instead of throwing) |
| TryCreateShortString | Helpers.TryCreateShortString(s) | Try to create a ShortString (returns Result instead of throwing) |
Create a LongString from a string (throws on failure)
Parameters
| Name | Type | Description |
|---|---|---|
| s | string |
Returns
LongString
Create a ShortString from a string (throws on failure)
Parameters
| Name | Type | Description |
|---|---|---|
| s | string |
Returns
ShortString
Try to create a LongString (returns Result instead of throwing)
Parameters
| Name | Type | Description |
|---|---|---|
| s | string |
Returns
Result<LongString, ModelError list>