Ejemplo n.º 1
0
        public XmlBamlReader(Stream stream, ITypeResolver resolver)
        {
            if (stream == null)
                throw new ArgumentNullException("stream");
            if (resolver == null)
                throw new ArgumentNullException("resolver");

            _resolver = resolver;
            reader = new BamlBinaryReader(stream);

            XamlTypeDeclaration = new TypeDeclaration(this.Resolver, "", "System.Windows.Markup", 0);
            KnownInfo = new KnownInfo(resolver);
        }
Ejemplo n.º 2
0
		///<summary>
		///When overridden in a derived class, changes the <see cref="P:System.Xml.XmlReader.ReadState"></see> to Closed.
		///</summary>
		///
		public override void Close()
		{
			//if (reader != null)
			//    reader.Close();
			reader = null;
		}