I am designing some immutable classes but I have to have some variables like say .Count
to have the total count of the instances. But would having a static variable affect multi-threading?
Because methods like Add, Remove, etc have to update the .Count
value. Maybe I should make it lazy property?