About 50 results
Open links in new tab
  1. What is the use of "ref" for reference-type variables in C#?

    Without ref, the reference is passed by value, and this doesn't happen. C# also has the 'out' keyword which is a lot like ref, except that with 'ref', arguments must be initialized before …

  2. vuejs3 - ref vs reactive in Vue 3? - Stack Overflow

    Apr 27, 2020 · In Summary ref() seems like the way to go since it supports all object types and allows reassigning with .value. ref() is a good place to start, but as you get used to the API, …

  3. How to get $refs using Composition API in Vue3? - Stack Overflow

    Feb 12, 2022 · Learn how to access $refs in Vue3 using the Composition API with practical examples and solutions.

  4. React 19 "ref as prop" and TypeScript - Stack Overflow

    Dec 5, 2024 · Ref doesn't have .current so you can't use the reference in the component (you can only pass it as a callback down to a primitive). Most of the time you don't need it because you …

  5. How to use $ref in an example declaration in OpenAPI?

    Jun 7, 2021 · Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,

  6. When to use ref and when it is not necessary in C#

    Mar 12, 2009 · The ref keyword signifies that you're passing the actual pointer to the location and updating that pointer in the outside function, so the value in the outside function will change. …

  7. Best practice: ref parameter or return value? - Stack Overflow

    Nov 21, 2011 · The version with ref tells me that I can start out with a list, and your method will modify the list I sent in, or even change it with another one. If that is your intention, do that. But …

  8. How to use refs in React with Typescript - Stack Overflow

    Nov 19, 2015 · I'm using Typescript with React. I'm having trouble understanding how to use refs so as to get static typing and intellisense with respect to the react nodes referenced by the …

  9. .net - Use of 'ref' keyword in C# - Stack Overflow

    Oct 4, 2011 · Possible Duplicates: Why use ref keyword when passing an Object? When to pass ref keyword in What is the correct usage of the 'ref' keyword in C#. I believe there has been …

  10. What's the difference between the 'ref' and 'out' keywords?

    Dec 23, 2008 · ref means that the value in the ref parameter is already set, the method can read and modify it. Using the ref keyword is the same as saying that the caller is responsible for …