Is there sample code on how to serialize/deserialize an XSLT through .NET?

I am currently able to serialize/deserialize through java saxon 9.1 following examples on http://saxon.sourceforge.net/saxon7.3/using-xsl.html


Compile.main(new String[] { in, out });

PreparedStylesheet.loadCompiledStylesheet(new Configuration(), new ObjectInputStream(

                        new ByteArrayInputStream(xsl)));

It seems that this has changed in Saxon 9.2, so I am not clear on how to do this in java or .NET.

Thank you for your help and contribution to XSLT 2.0