Thermolysis and photolysis of various N-imidoyliminopyridinium ylides