Beispiel #1
0
        /// <summary>Generates an object from its XML representation.</summary>
        /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
        public void ReadXml(XmlReader reader)
        {
            var r     = reader.ReadSubtree();
            var proxy = (InformationRequirementSerializable)InformationRequirementSerializableSerializer.Deserialize(r);

            RequiredDecision = proxy.RequiredDecision;
            RequiredInput    = proxy.RequiredInput;
            reader.ReadEndElement();
        }
Beispiel #2
0
        /// <summary>Generates an object from its XML representation.</summary>
        /// <param name="reader">The <see cref="T:System.Xml.XmlReader"></see> stream from which the object is deserialized.</param>
        public void ReadXml(XmlReader reader)
        {
            var r = reader.ReadSubtree();

            var serializer = reader.NamespaceURI == DmnParser.XmlNamespaceDmn11
                ? InformationRequirementSerializableSerializer
                : InformationRequirementSerializableSerializer13;

            var proxy = (InformationRequirementSerializable)serializer.Deserialize(r);

            RequiredDecision = proxy.RequiredDecision;
            RequiredInput    = proxy.RequiredInput;
            reader.ReadEndElement();
        }