Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.48 KB

File metadata and controls

34 lines (27 loc) · 1.48 KB
title Method Parameters (C# Reference)
ms.date 07/20/2015
ms.prod .net
ms.technology
devlang-csharp
ms.topic article
helpviewer_keywords
methods [C#], parameters
method parameters [C#]
parameters [C#]
ms.assetid 680e39ff-775b-48b0-9f47-4186a5bfc4a1
caps.latest.revision 8
author BillWagner
ms.author wiwagn

Method Parameters (C# Reference)

Parameters declared for a method without in, ref or out, are passed to the called method by value. That value can be changed in the method, but the changed value will not be retained when control passes back to the calling procedure. By using a method parameter keyword, you can change this behavior.

This section describes the keywords you can use when declaring method parameters:

See Also

C# Reference
C# Programming Guide
C# Keywords