Disclosed is a method of producing polymers of formula (I) containing nitrogen made of aziridines (e.g., trimethylolpropane tris[3-(2-methyl-1-aziridinyl)propionate), and the use of the polymers for stabilizing biocides comprising iodine compounds (e.g., iodoalkynyl compounds) against chemical and light induced degradation.