system.xml.xmlwriter class does not work in unity?

i tested another environment on .net framework ver.5
it is work.

but unity does not.

what is different? i tested same code