コード例 #1
0
ファイル: XamlToolsControl.cs プロジェクト: furesoft/OmniXAML
 private IEnumerable<XamlInstruction> ConvertToNodes(Stream stream)
 {
     var reader = new XmlCompatibilityReader(stream);
     var wiringContext = WiringContext;
     var pullParser = new XamlInstructionParser(wiringContext);
     var protoParser = new XamlProtoInstructionParser(wiringContext);
     return pullParser.Parse(protoParser.Parse(reader)).ToList();
 }
コード例 #2
0
 private IEnumerable<Instruction> ConvertToNodes(Stream stream)
 {
     var reader = new XmlCompatibilityReader(stream);
     var runtimeTypeSource = RuntimeTypeSource;
     var pullParser = new InstructionParser(runtimeTypeSource);
     var protoParser = new ProtoInstructionParser(runtimeTypeSource);
     return pullParser.Parse(protoParser.Parse(reader)).ToList();
 }
コード例 #3
0
        private ICollection<Instruction> ExtractNodesFromPullParser(string xml)
        {
            var pullParser = new InstructionParser(TypeRuntimeTypeSource);

            using (var stream = new StringReader(xml))
            {
                var reader = new XmlCompatibilityReader(stream);
                return pullParser.Parse(new ProtoInstructionParser(TypeRuntimeTypeSource).Parse(reader)).ToList();
            }
        }
コード例 #4
0
        private ICollection<XamlInstruction> ExtractNodesFromPullParser(string xml)
        {
            var pullParser = new XamlInstructionParser(WiringContext);

            using (var stream = new StringReader(xml))
            {
                var reader = new XmlCompatibilityReader(stream);
                return pullParser.Parse(new XamlProtoInstructionParser(WiringContext).Parse(reader)).ToList();
            }
        }