About 11,000,000 results
Open links in new tab
  1. vue.js - `ref ()` vs `reactive ()` in Vue 3? - Stack Overflow

    Apr 27, 2020 · I checked a few guides for Vue 3 and noticed that in some examples they used reactive(), while in others they created the same thing with ref(). They seem to behave very similarly, but which …

  2. What is the difference between ref, toRef and toRefs?

    Mar 11, 2021 · I have just started working with Vue 3 and the Composition API. What are the differences between ref, toRef and toRefs?

  3. 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. E.g. the …

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

  5. Difference between ref and out parameters in .NET [duplicate]

    In contrast ref parameters are considered initially assigned by the caller. As such, the callee is not required to assign to the ref parameter before use. Ref parameters are passed both into and out of a …

  6. Why ref and out in C#? - Stack Overflow

    Jul 26, 2015 · While using keyword ref, calling code needs to initialize passed arguments, but with keyword out we need not do so. Why don't we use out everywhere? What is exact difference …

  7. .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 plenty of …

  8. 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 if the method …

  9. Why I need to use ref keyword in both declaration and Call?

    Oct 6, 2009 · Duplicate of: What is the purpose of the “out” keyword at the caller? Why I need to use 'ref' keyword in both declaration and Call. void foo(ref int i) { } For example, Consider above function...

  10. C# property and ref parameter, why no sugar? - Stack Overflow

    Aug 20, 2010 · On a more technical level, ref and out pass the memory address of the object passed into them, and to set a property, you have to call the setter, so there's no guarantee that the property …