protected object GetTarget(string id) { object target = _targets != null ? _targets[id] : null; if (target == null) { throw new InvalidOperationException(SR.Format(SR.XmlInvalidHref, id)); } Referenced(target); return target; }