When should I use enum in C#?

In C#, an enum (or enumeration type) is used to assign constant names to a group of numeric integer values . It makes constant values more readable, for example, WeekDays. Monday is more readable then number 0 when referring to the day in a week.

Sizin İçin Seçtik  Ripple davayı kazandı mı?

Leave a Reply

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