Ejemplo n.º 1
0
 public static string Serialize(object obj)
 {
     using (MemoryStream xamlStream = new MemoryStream())
     {
         XamlTestDriver.Serialize(obj, xamlStream);
         xamlStream.Position = 0;
         return(XamlTestDriver.GetStringFromMemoryStream(xamlStream));
     }
 }
Ejemplo n.º 2
0
 static void TraceXamlFile(MemoryStream xamlStream)
 {
     XamlTestDriver.TraceXamlFile(XamlTestDriver.GetStringFromMemoryStream(xamlStream));
     xamlStream.Position = 0;
 }