Something like this (I think you should have read-only access, which means Add , RemoveAt , Clear , etc. are not allowed):
public class RegistrationManager {
the disadvantage of the solution is that it is technically possible to discard, for example,
RegistrationManager manager = ...
Dmitry Bychenko
source share