The foot is killed by MSDN, and his code scrubs to modify it into his own variables.
It turns out that when dealing with this incident, it must be noted that the situation when selectedIndex = -1 is determined, or it is likely to cause errors.