c# 4.0 - How to keep an object unique -
i have static datatable (with 80k records) in common.dll , common.dll referred 10 windows services. so, instead of having 10 copies of datatable in memory need have 1 copy , services pointing data source. approach possible? given services @ least using different appdomains, , quite possibly different processes, sharing same data between of them tricky. i suggest don't worry - unless each record pretty large, 80k records still going small. you could potentially have 11th service only 1 have data, , talk service other ones. that's introducing lot of complexity little benefit. one way of potentially saving memory use list<t> custom type, instead of datatable - may more efficient, , more pleasant use within code. doesn't if need datatable whatever you're doing it, try avoid that...