From e09e8bcea8a18c5ae7e8032c071fa050171507ea Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 2 Feb 2016 11:13:29 +0100 Subject: [PATCH] removed ixmlserializable from color, not functionnal --- src/Colors.cs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/Colors.cs b/src/Colors.cs index de41514a..61f9208f 100644 --- a/src/Colors.cs +++ b/src/Colors.cs @@ -10,7 +10,7 @@ using System.Diagnostics; namespace Crow { - public struct Color : IXmlSerializable + public struct Color { #region CTOR public Color(double _R, double _G, double _B, double _A) @@ -1018,25 +1018,6 @@ namespace Crow public static readonly Color Zaffre = new Color(0,0.0784313725490196,0.658823529411765,1.0,"Zaffre"); public static readonly Color ZinnwalditeBrown = new Color(0.172549019607843,0.0862745098039216,0.0313725490196078,1.0,"ZinnwalditeBrown"); #endregion - - #region IXmlSerializable - public void ReadXml(System.Xml.XmlReader reader) - { - string[] c = reader["Color"].Split(new char[] { ';' }); - R = double.Parse(c[0]); - G = double.Parse(c[1]); - B = double.Parse(c[2]); - A = double.Parse(c[3]); - } - public void WriteXml(System.Xml.XmlWriter writer) - { - writer.WriteAttributeString("Color", this.ToString()); - } - public System.Xml.Schema.XmlSchema GetSchema() - { - return null; - } - #endregion public override string ToString() { -- 2.47.3