Enzymes that catalyzes the transfer of a methyl group from S-ADENOSYLMETHIONINE to the 5-position of CYTOSINE residues in DNA.