This may have an obvious answer but I will ask anyway.
Is there a variable equivalent of the blocking collection for C#? What I want is for all my threads to be able to access a shared variable. It will not be a collection, just a shared variable that will be adjusted in value as each thread uses it. What I like about the blockingcollection is that ques, and locks, are managed by C#, and was hoping there was something similar for just a variable?
I could use a public static variable and create the lock myself but thought I should check.
EDIT: Would the interlock be a possibility.