From cc4c62ab5d809ff451ca475a7949adc4fdfd806b Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 8 Aug 2016 19:22:52 +0200 Subject: IMLInstantiator implementation --- src/IMLStream.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/IMLStream.cs') diff --git a/src/IMLStream.cs b/src/IMLStream.cs index 542797a1..290c5355 100644 --- a/src/IMLStream.cs +++ b/src/IMLStream.cs @@ -23,6 +23,10 @@ using System.IO; using System.Reflection; using System.Reflection.Emit; using System.Threading; +using System.Xml.Serialization; +using System.Xml; +using System.Collections.Generic; +using System.Diagnostics; namespace Crow { @@ -33,10 +37,10 @@ namespace Crow Path = path; using (Stream stream = Interface.GetStreamFromPath (path)) stream.CopyTo (this); - RootType = Interface.GetTopContainerOfXMLStream (this); + //RootType = Interface.GetTopContainerOfXMLStream (this); } public IMLStream(Byte[] b) : base (b){ - RootType = Interface.GetTopContainerOfXMLStream (this); + //RootType = Interface.GetTopContainerOfXMLStream (this); } /// /// Create a graphicObject instance from the this XML stream. @@ -47,7 +51,7 @@ namespace Crow Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; Seek (0, SeekOrigin.Begin); - GraphicObject tmp = Interface.Load (this, this.RootType); + GraphicObject tmp = null;//Interface.Load (this, this.RootType); Thread.CurrentThread.CurrentCulture = savedCulture; return tmp; -- cgit v1.3.1-4-g156e