Top "Ref" questions

The ref keyword causes an argument to be passed by reference, not by value.

Cloud Firestore: how to fetch a document reference inside my collection query and map it as a JSON value?

Let's say I have a collection of comments. Every comment object has a "doc ref" to the user who posted. …

firebase cloud ref google-cloud-firestore
Managed C++ ref class

Any good site or explanation on what is a ref class and when to declare a class to be a "…

managed-c++ ref
React ref.current is null

I'm working on an agenda/calendar app with a variable time range. To display a line for the current time …

reactjs ref
Using document.querySelector in React? Should I use refs instead? How?

I am building a carousel right now, in React. To scroll to the individual slides I am using document.querySelector …

javascript reactjs ref use-effect js-scrollintoview
C++ Difference between std::ref(T) and T&?

I have some questions regarding this program: #include <iostream> #include <type_traits> #include <functional> …

c++ reference ref
React - How to pass `ref` from child to parent component?

I have a parent and a child component, I want to access the ref of an element which is in …

reactjs redux ref
Vue - access nested childs using ref

I have vue component which I use inside himself - data can have array with subelements and I use this …

vue.js nested vue-component ref
Why I need to use ref keyword in both declaration and Call?

Duplicate of: What is the purpose of the “out” keyword at the caller? Why I need to use 'ref' keyword …

c# keyword ref
Why can't iterator methods take either 'ref' or 'out' parameters?

I tried this earlier today: public interface IFoo { IEnumerable<int> GetItems_A( ref int somethingElse ); IEnumerable<int&…

c# parameters ref out
C# Cannot use ref or out parameter inside an anonymous method body

I'm trying to create a function that can create an Action that increments whatever integer is passed in. However my …

c# lambda anonymous-methods ref