public void Dispose() { if (_disposed) { return; } IObjectReference objectReference = _value as IObjectReference; if (objectReference != null) { objectReference.EnableCollection(); } _disposed = true; }