Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Models.ObjectSupport.GetEnumDisplayInfo Method

Retrieve caption/description for an enum value, derived from EnumDescription attribute.

Class: YetaWF.Core.Models.ObjectSupport
Namespace: YetaWF.Core.Models
Assembly: YetaWF.Core

Syntax

public static string GetEnumDisplayInfo(
    object enumValue,
    out string?? description,
    bool ShowValue = false );

Parameters

enumValue

The enum value.

description

Returns the description found in the EnumDescription attribute.

ShowValue

(not specified)

Return Value

Returns the caption found in the EnumDescription attribute.

See Also YetaWF.Core.Models.ObjectSupport ClassYetaWF.Core Overview