Esempio n. 1
0
        private IEnumerable <Instruction> Crop(IEnumerable <Instruction> original, XamlType newType, XamlType oldType)
        {
            var list          = original.ToList();
            var nodeToReplace = list.First(node => NodeHasSameType(oldType, node));
            var id            = list.IndexOf(nodeToReplace);

            list[id] = instructionBuilder.StartObject(newType.UnderlyingType);
            return(list);
        }