aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Web/UploadVersionRequest.cs
blob: 3946588135bad7a43b39c0f5b26a6be5d23980b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.MachineStudio.Common.Web
{
    public class UploadVersionRequest : WebRequestMessage
    {
        public String Version { get; set; }

        public String Comments { get; set; }

        public bool WithInstaller { get; set; }
    }
}
erates the tree structure in preorder.</returns> public static IEnumerable<T> Flatten<T>(this IEnumerable<T> input, Func<T, IEnumerable<T>> recursion) { Stack<IEnumerator<T>> stack = new Stack<IEnumerator<T>>(); try { stack.Push(input.GetEnumerator()); while (stack.Count > 0) { while (stack.Peek().MoveNext()) { T element = stack.Peek().Current; yield return element; IEnumerable<T> children = recursion(element); if (children != null) { stack.Push(children.GetEnumerator()); } } stack.Pop().Dispose(); } } finally { while (stack.Count > 0) { stack.Pop().Dispose(); } } } } }