web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Using Out Variables (C# 7.0...

Using Out Variables (C# 7.0) instead of Out Parameters

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Out Parameters must need to declared before they are used in the method which doesn’t seem intuitive.

Now with C# 7.0 we can now make use of Out variable.

Here in our second call to the method we have used out variable named outVariableString which we didn’t have to declare like output parameter.

Hope it helps..


Filed under: .NET Framework, C# Tagged: .NET Framework, .NET Language, C#

This was originally posted here.

Comments

*This post is locked for comments