Root / Assembly / ARCCore / AREnumType / DocumentationOnlyEnum / ARConcepts / _Member / TryPatternAndNull

EnumMemberAttribute

TryPatternAndNull

KeyValue
DescriptionAgoRapide uses non-nullable reference types as default throughout the system

(through the setting <PropertyGroup><Nullable>enable</Nullable></PropertyGroup> in the .csproj-files).

However, the TryGet- / TryParse-pattern does not work well with non-nullable reference types. A compromise is being used in AgoRapide where actually null! is set for the out-value when return value is FALSE. Assuming correct client-usage, this use of null! is considered to be an acceptable compromise. For more details, see https://softwareengineering.stackexchange.com/questions/387674/c-8-non-nullable-references-and-the-try-pattern
EnumMemberTryPatternAndNull
EnumTypeARCCore.ARConcepts

3 items


Generated 2020-10-13 11:11:01.213 UTC