Ejemplo n.º 1
0
 public override ReaperProjectNode Replace(ReaperProjectNode target,
                                           ReaperProjectNode replacement)
 {
     if (this == target)
     {
         return(replacement);
     }
     return(this);
 }
Ejemplo n.º 2
0
        public override ReaperProjectNode Replace(ReaperProjectNode target,
                                                  ReaperProjectNode replacement)
        {
            if (this == target)
            {
                return(replacement);
            }
            var newElements =
                Elements.Select(e => e.Replace(target, replacement)).ToImmutableArray();

            if (newElements.SequenceEqual(Elements))
            {
                return(this);
            }
            return(NodeFactory.CreateAppropriateProjectElementType(
                       Header, newElements));
        }
 public static string Render(ReaperProjectNode node)
 {
     return(Render(ImmutableArray.Create(node)));
 }
 public abstract ReaperProjectNode Replace(ReaperProjectNode target,
                                           ReaperProjectNode replacement);