private void CheckNodeRef() { if (nodeRef == null) { throw new Exception("Must attach node first"); } }