public void SerializeToPath(IPathStack path) { foreach (string keyword in keywords) path.Push(keyword); } }