C# 7 Series, Part 8: “in” Parameters

January 08, 2018
  451
C# 7 Series, Part 8: “in” Parameters
By default, method arguments are passed by value. That is, arguments are copied and passed into the method. Therefore, modification to the argument inside the method body does not affect the original value. In most of the cases, modifications are unnecessary. Other programming languages, such as C++, has a const parameter or similar concept: This indicates that the parameter inside the method body is a constant that cannot be reassigned. It helps to avoid mistakes where you unintentionally reassign a method parameter in the body, and improves the performance by disallowing the unnecessary assignments. C# 7.2 introduces the in parameter (aka. readonly ref parameter.) A method parameter with in modifier means that this parameter is by ref and read only within the method body.

Hot Vacancies

.NET Core Developer to Chudovo OU

Chudovo OU
.NET Core This week

Chudovo OU company base in Kyiv is looking for a .Net Developer to join the totally new project from scratch.

Senior .Net Developer (.Net Core + Azure)

Chudovo OU
Azure

Chudovo OU company base in Kyiv is looking for experienced .Net Developer to join the totally new project from scratch.

.NET Core Developer (Kharkiv, Mykolaiv)

MobiDev
.NET Core

We are expanding our team and looking for a talented .NET Core Developer, who is ready to gain new experience. Combination of commercial experience and fundamental knowledge, ability to apply them in practice, passion for complex tasks, and good English – such is the recipe for our successful cooperation.

Middle full stack .NET developer

Nowinfinity
.NET Core

NowInfinity is an automation, legal documentation and corporate compliance provider specialised innovative productivity, integration and government services. e are building a subscription-based B2B product based on Dynamics CRM, .NET, Aurelia. Now we looking for full stack self-dependent web developer to work on Australian leading cloud-based platform for document and entities management.

Middle .Net developer

Speak With A Geek
.NET Core

Speak With A Geek is a relatively new company in Kyiv and we already have a good team and number of interesting an challenging projects on .net core :) We have open positions for Middle .Net developer.

View all vacancies.