C# naming convention for enum and matching property

前端 未结 8 1101
鱼传尺愫
鱼传尺愫 2020-12-02 07:03

I often find myself implementing a class maintaining some kind of own status property as an enum: I have a Status enum and ONE Status property of Status type. How should I s

8条回答
  •  盖世英雄少女心
    2020-12-02 07:35

    I usually prefix the enums, e.g. CarStatus. I suppose it all depends on team you're working with (if they have any rules/ processes for that sort of thing) and the objects usage. Just my 2 cents (:

提交回复
热议问题