Skip to Content
Expert C# 5.0: with the .NET 4.5 Framework
book

Expert C# 5.0: with the .NET 4.5 Framework

by Mohammad Rahman
December 2012
Intermediate to advanced content levelIntermediate to advanced
612 pages
14h 4m
English
Apress
Content preview from Expert C# 5.0: with the .NET 4.5 Framework

CHAPTER 3

images

Parameters

This chapter will discuss the parameters in C#. The focus will be to show different ways of passing parameters to a method, such as pass by value, pass by reference, and pass default value of the parameter. You will find explanations of these in detail and see how CLR handles these behind the scene.

Parameter

The parameter is the mechanism used to accept input to a method from the caller of that method. In a method signature, you can define the parameter or parameters to accept the input. These parameters could be any type, such as value types, for example, Int32, string, or reference type for an instance object, a person ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro C# 5.0 and the .NET 4.5 Framework, Sixth Edition

Pro C# 5.0 and the .NET 4.5 Framework, Sixth Edition

Andrew Troelsen
C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet

Publisher Resources

ISBN: 9781430248606Purchase book