Exemplo n.º 1
0
		// Write a collection object as CXML to a stream
		public static void Serialize(Stream outputStream, PivotCollection collection)
		{
			CxmlSerializer serializer = new CxmlSerializer(collection);
			XmlWriterSettings settings = new XmlWriterSettings();
			settings.Indent = true;
			settings.IndentChars = string.Empty;
			settings.NewLineChars = Environment.NewLine;
			using (XmlWriter writer = XmlWriter.Create(outputStream, settings))
				serializer.Write(writer);
		}
Exemplo n.º 2
0
		// Write a collection object as CXML into an XmlWriter
		public static void Serialize(XmlWriter writer, PivotCollection collection)
		{
			CxmlSerializer serializer = new CxmlSerializer(collection);
			serializer.Write(writer);
		}