Chapter 9. Methods
A method is a member that implements an action that can be performed by an object. In this chapter, we will explore C# methods and see how they form the essential core of a C# program. In short, without methods, there could be no C# programs, and understanding how to define and use methods is essential to becoming an effective and productive C# programmer.
This chapter is relatively long because methods are such an important topic and there are many language features that relate to their use. To make it easier to understand methods, I start with a quick tour of the basic features and then dig down into the detail of each. Toward the end of the chapter, I describe some special kinds of method, the most important of which is the ...
Get Introducing Visual C# 2010 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.