About 432,000,000 results
Open links in new tab
  1. 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.

  2. out keyword (generic modifier) - C# reference | Microsoft Learn

    Sep 15, 2021 · For generic type parameters, the out keyword specifies that the type parameter is covariant. You can use the out keyword in generic interfaces and delegates. Covariance enables you …

  3. What is the purpose of the "out" keyword at the caller (in C#)?

    Aug 28, 2012 · Basically, if you've got an (uncaptured) local variable and you use it as a non-out/ref argument, you know that the value of that variable won't be changed within the method. (If it's a …

  4. 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 in flexible …

  5. C# - out Keyword (out Parameter) - Dot Net Perls

    Aug 15, 2025 · The out -keyword ensures that variables are always assigned in the body of a method. With the out -modifier, a method can signal to the calling location that the variable was initialized and …

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

    Aug 18, 2024 · In C#, the ref and out keywords are essential tools for passing arguments by reference, enabling methods to modify the values of passed variables. While both keywords allow you to …

  7. 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 initialized before …

  8. Out Keyword in C# - TutorialsTeacher.com

    The variable must be declared without initializing before calling a method that includes the out parameters. Also, while calling the method, a variable must be passed with out keyword.

  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 to a …

  10. C# Language Tutorial => out var declaration

    An out var declaration can be used with any existing function which already has out parameters. The function declaration syntax remains the same, and no additional requirements are needed to make …