About 424,000,000 results
Open links in new tab
  1. out keyword - C# reference | Microsoft Learn

    Mar 30, 2024 · out (C# Reference) You can use the out keyword in two contexts: As a parameter modifier, which lets you pass an argument to a method by reference rather than by value. In …

  2. Out Parameter With Examples in C# - GeeksforGeeks

    Jul 11, 2025 · Multiple out Parameters: In C#, a user is allowed to pass multiple out parameters to the method and the method returns multiple values. Example: In the below code, we declared …

  3. Mastering C# Fundamentals: the `out` Keyword - DEV Community

    Sep 29, 2024 · The out keyword allows passing parameters by reference in C#. Unlike the ref keyword, the out keyword doesn't require the argument to be initialized before passing it to a …

  4. .net - Using the "out" keyword in C# - Stack Overflow

    Jan 30, 2024 · The "out" keyword is a special type of by reference, in that you do not need to initialise the variable before you call the method. It can be called with null being passed in and …

  5. Understanding the ref and out Keywords in C# - Medium

    Feb 27, 2025 · The out keyword also passes a parameter by reference, but with a twist: You don’t need to initialize the variable before passing it into the method (although you still must declare it).

  6. C# Out Parameter: Usage, Syntax, and Updates - C# Corner

    C# out parameter. Before C# 7.0, the out keyword was used to pass a method argument's reference. Before a variable is passed as an out argument, it must be declared. However, …

  7. Exploring C# 'out' Keyword: Everything You Need to Know

    Aug 20, 2024 · When working with C#, the 'out' keyword plays a vital role in method parameters to return multiple values. Let's dive deeper into what the 'out' keyword is and how it can be …

  8. Unveiling the Power of C# `out` Parameter: A Comprehensive Guide

    This blog post will delve deep into the fundamental concepts of C# `out`, explore its usage methods, examine common practices, and provide best practices to help you master this …

  9. What is the 'out' parameter in C#? - Educative

    The out parameter in C# is used to pass arguments to methods by reference. It differs from the ref keyword in that it does not require parameter variables to be initialized before they are passed …

  10. C# Language Tutorial => out var declaration

    It allows a variable to be declared at the same time that is it passed as an out parameter. A variable declared this way is scoped to the remainder of the body at the point in which it is …