How to Get the Source Code of a Class on Remote Server?

Answers

do ##class(%Compiler.UDL.TextServices).GetTextAsString(namespace, class, .text)
write text