protected ComponentTranslation(MutableView view) { this.view = view; LogDispatcher = view.LogDispatcher; translationHandle = GetNextHandle(); HandleToTranslation.Add(translationHandle, this); }
public void Dispose() { ComponentTranslation translationForHandle; if (HandleToTranslation.TryGetValue(translationHandle, out translationForHandle) && translationForHandle == this) { HandleToTranslation.Remove(translationHandle); } }