I am developing a .NET API for public use. There are many enumerations in my API, and I'm struggling to decide whether to use suffixes.
In the .NET Framework, I see examples of using both Good (for example, System.DateTimeKind ) and Type (for example, System.IO.DriveType ).
Looking at the public enumerations in mscorlib, I see that the โTypeโ is used more often, but both of them are still used in some new types, which means that Microsoft does not adhere to any specific agreement on this.
Does anyone have any recommendations on what to use in my API? Are there any published conventions covering this topic?
I tend to use โKindโ as a suffix and reserve the term โTypeโ to handle System.Type objects or data types.
source share