Interfaces, Structs, and Enums
Adam Freeman · Apress eBooks · 2010
In this chapter, we have looked at three categories of C# type: the interface, the struct, and the enum. Most C# programmers spend most of their time working on classes, but these types have their place and can be very useful in certain circumstances: interfaces are useful when you want to impose consistency on classes and structs that are not otherwise related, structs are useful when you want to create custom value types, and enums are useful when you need to work with a fixed range of values. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.