2010 | OriginalPaper | Buchkapitel
Fields
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
In this chapter, we have seen how to define, initialize, modify, and use fields, and we have seen how to expose those fields to other types using properties and directly. Fields, be they the regular kind or static or whether or not have constant values, are the backbone of classes, and we use them in C# to maintain the state of our program as it runs. In later chapters, we will see some specialized kinds of field, such as events and delegates, which we can use to build on the basic model to achieve very specific effects.