Skip to content

EnumerationBase

EnumerationBase<TCode, TEnumeration> is a data-carrier contract (DTO) in the Contracts area of SAIF.SAIFCode.Core, exposing the properties SAIF.Services and its consumers read and populate for this entity*.

Purpose

  • Carries data for the Contracts area, consumed by SAIF.Services and other layers that reference this library's contracts*.

Context

  • Namespace: SAIF.Core.Contracts
  • Kind: Class
  • Assembly/package: SAIF.Core (NuGet package SAIF.SAIFCode.Core)

Public members

Member Signature Purpose
Code TCode Code { get; set; } Classifies the code using a coded value*.
Description string Description { get; set; } Holds free-text description recorded against this EnumerationBaseTCodeTEnumeration*.
EnumValue TEnumeration EnumValue { get; set; } Represents the enum value associated with this EnumerationBaseTCodeTEnumeration*.
GetCodeValue TCode GetCodeValue(TEnumeration enumValue) Returns code value, given enumValue*.
GetEnumeratedValue TEnumeration GetEnumeratedValue(TCode code) Returns enumerated value, given code*.

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Core/SAIF.Core/Contracts/Core/EnumerationBase.cs