Q&A

Q1:Is there an easy way to get help about an object's member?
A1: Absolutely. C#'s context-sensitive Help extends to code as well as to visual objects. To get help on a member, write a code statement that includes the member (it doesn't have to be a complete statement), position the cursor within the member text, and press F1. For instance, to get help on the Count property of the controls collection, you could type this.Controls.Count, position the cursor within the word Count, and press F1.
Q2:Are there any other types of object members besides properties and methods?
A2: Yes. An event is actually a member of an object, although it's not always thought of that way. Not all objects support events, however, but most objects do support properties ...

Get Sams Teach Yourself C#™ in 24 Hours 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.