What is best practice for sharing a variable between delegates?

One of my applications starts asynchronous delegates an arbitrary number of times. Those instances also start other asynchronous delegates an arbitrary number of times. I need a way for each delegate to know how many other delegates are active. Can anyone help?

I'm pretty new to this, I hope my terminology is clear enough.

use static field in your program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.