About 434,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 · The out is a keyword in C# which is used for the passing the arguments to methods as a reference type. It is generally used when a method returns multiple values.

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

    Sep 29, 2024 · What is the out Keyword? The out keyword allows passing parameters by reference in C#. Unlike the ref keyword, the out keyword doesn't require the argument to be …

  4. 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, …

  5. docs/docs/csharp/language-reference/keywords/out.md at main · …

    The following limitations apply to using the out keyword: out parameters are not allowed in asynchronous methods. out parameters are not allowed in iterator methods. Properties cannot …

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

    The out keyword in C# is a parameter modifier that enables a method to pass a value out to the calling code. Unlike the traditional return value, which can only return a single value, a method …

  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. ref vs out in C# - C# Corner

    Explore the distinction between 'ref' and 'out' keywords in C#. Learn how 'ref' passes arguments by reference for both input and output, while 'out' is used solely for output parameters, aiding …

  9. Ref, Out, In parameters in C# - DEV Community

    Jun 15, 2023 · The ref, out, and in keywords provide detailed control over how arguments are passed to methods. Understanding and using them correctly can enhance code efficiency and …

  10. How to: Specify an out parameter | Microsoft Learn

    Aug 3, 2021 · This sample shows how to specify that a function parameter is an out parameter, and how to call that function from a C# program. An out parameter is specified in C++ by using …