void ILineTracker.BeforeRemoveLine(DocumentLine line) { if (targetObject.Target is ILineTracker) { ILineTracker targetTracker = targetObject.Target as ILineTracker; targetTracker.BeforeRemoveLine(line); } else { Deregister(); } }
/// <inheritdoc/> public void BeforeRemoveLine(DocumentLine line) { ILineTracker targetTracker = targetObject.Target as ILineTracker; if (targetTracker != null) { targetTracker.BeforeRemoveLine(line); } else { Deregister(); } }