Tuesday, August 14, 2012

Difference between "out" and "ref" parameter modifier?

What is the need of two similar type of parameter modifier? Was Microsoft a fool while engineering C# and how ECMA made the standard approved?


The questions are justified. See the difference below

Monday, August 13, 2012

Method Parameters in C#

Functions or methods are heart of programming language. While crafting your application you will be requiring defining your custom methods now and then. Understanding methods, its parameters and return types are very important. C# provides some keyword like "out", "ref" or "params" to control your method parameters. These are called parameter modifiers. After getting so many phone calls on the same topic, I decided to write a blog on this.