Color4Serialization example now correctly prints its output messages.

This commit is contained in:
the_fiddler 2009-11-10 00:09:39 +00:00
parent e9d7d147d8
commit 9a4bf6ab79

View file

@ -25,11 +25,9 @@
// //
#endregion #endregion
using System; using System.Diagnostics;
using System.IO; using System.IO;
using System.Xml.Serialization; using System.Xml.Serialization;
using OpenTK;
using OpenTK.Graphics; using OpenTK.Graphics;
namespace Examples.Tests namespace Examples.Tests
@ -48,9 +46,9 @@ namespace Examples.Tests
xs.Serialize(stream, color); xs.Serialize(stream, color);
stream.Seek(0, SeekOrigin.Begin); stream.Seek(0, SeekOrigin.Begin);
color2 = (Color4)xs.Deserialize(stream); color2 = (Color4)xs.Deserialize(stream);
Console.WriteLine(color); Trace.WriteLine(color);
Console.WriteLine(color2); Trace.WriteLine(color2);
Console.WriteLine(color.Equals(color2)); Trace.WriteLine(color.Equals(color2));
} }
} }
} }