GO:0051719:   DNA (cytosine-5-)-methyltransferase activity, acting on CpN substrates
Catalysis of the reaction: S-adenosyl-L-methionine + DNA containing CpN = S-adenosyl-L-homocysteine + DNA containing 5-MeCpN.