Alkylating agents, such as methyl iodide, react initially with DMSO at the oxygen to give methoxydimethylsulfonium iodide. These alkoxysulfonium salts are quite reactive and with continued heating rearrange to give the more stable trimethyloxosulfonium salts. In the case of methyl iodide trimethylsoxosulfonium iodide is produced