Part 17 – C# Tutorial – Method parameters in C#

Method parameters in C#

Method parameter is one of the integral part of programming and it also applies with C# programming Language.

We can categorize method parameters in various parts. Some of them are:

  • Named Parameters (C# 4.0 and above)
  • Ref Parameter (Passing Value Types by Reference)
  • Out Parameters
  • Default Parameters or Optional Arguments (C# 4.0 and above)
  • Dynamic parameter (dynamic keyword).
  • Value parameter or Passing Value Types by Value (normal C# method param are value parameter)
  • Params (params)

[youtube https://www.youtube.com/watch?v=7xYSFbUPP0E]

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *