protected override void DeserializeCore(XmlElement nodeElement, SaveContext context) { base.DeserializeCore(nodeElement, context); var helper = new XmlElementHelper(nodeElement); shouldFocus = helper.ReadBoolean("ShouldFocus"); code = helper.ReadString("CodeText"); // Lookup namespace resolution map if available and initialize new instance of ElementResolver var resolutionMap = CodeBlockUtils.DeserializeElementResolver(nodeElement); ElementResolver = new ElementResolver(resolutionMap); ProcessCodeDirect(); }
protected override void DeserializeCore(XmlElement nodeElement, SaveContext context) { base.DeserializeCore(nodeElement, context); foreach (var subNode in nodeElement.ChildNodes.Cast <XmlNode>() .Where(subNode => subNode.Name == "Symbol")) { InputSymbol = subNode.Attributes[0].Value; } ArgumentLacing = LacingStrategy.Disabled; var resolutionMap = CodeBlockUtils.DeserializeElementResolver(nodeElement); elementResolver = new ElementResolver(resolutionMap); }