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

NameSignatureSynopsis
CreateLongStringHelpers.CreateLongString(s)Create a LongString from a string (throws on failure)
CreateShortStringHelpers.CreateShortString(s)Create a ShortString from a string (throws on failure)
TryCreateLongStringHelpers.TryCreateLongString(s)Try to create a LongString (returns Result instead of throwing)
TryCreateShortStringHelpers.TryCreateShortString(s)Try to create a ShortString (returns Result instead of throwing)

CreateLongString

Helpers.CreateLongString(s)
Member
Create a LongString from a string (throws on failure)

Parameters

NameTypeDescription
sstring

Returns

LongString

CreateShortString

Helpers.CreateShortString(s)
Member
Create a ShortString from a string (throws on failure)

Parameters

NameTypeDescription
sstring

Returns

ShortString

TryCreateLongString

Helpers.TryCreateLongString(s)
Member
Try to create a LongString (returns Result instead of throwing)

Parameters

NameTypeDescription
sstring

Returns

Result<LongString, ModelError list>

TryCreateShortString

Helpers.TryCreateShortString(s)
Member
Try to create a ShortString (returns Result instead of throwing)

Parameters

NameTypeDescription
sstring

Returns

Result<ShortString, ModelError list>