Can enums have string values?

No they cannot . They are limited to numeric values of the underlying enum type. +1 Good one with the helper method! ToString(“F”) is useful for formatting to the name of the enum value, if they don’t want custom strings.

Sizin İçin Seçtik  How do I get a list of all enum values?

Leave a Reply

Your email address will not be published. Required fields are marked *