Members
Members are the programming elements and constructs that are contained in namespaces, classes, structs, and interfaces. Members are divided into three categories: functional, data, and type. Functional members are those that contain executable code, data members are constant or variable values, and type members are nested type declarations.
Member Types and Declaration Context
Table 5-11 contrasts the member types available in Java and C#. A Java developer will be familiar with many of the C# member types, but C# also adds some new ones. For the C# member types, we identify their valid declaration contexts.
Table 5-11. A Cross-Language Comparison of Member Types
C# Member Context | |||||
Java Member | C# Member | Namespace | Class | Struct | Interface |
Functional ... |
Get C# for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.