Is there a way to share one static variable between several different generic classes?
I have a class
class ClassA <T> : ObservableCollection<T> { static int counter;
and several instances of it with different instances of parameters, for example
ClassA<int> a = new ClassA<int>(); ClassA<double> b = new ClassA<double>(); ClassA<float> c = new ClassA<float>();
Is there a way in which instances a, b, and c share a static field counter?
Any answers and comments are greatly appreciated :)
source share