It depends greatly on the circumstances of the loss of ignition, but I've had a rash of corroded right handlebar switches lately. Glad they're still...
Alternatively you could do what KonaRider posted just above yours... and see if it's a waste of money and time to replace it before you replace it.
...