Example #1
0
        /// <summary>
        /// Shorthand for adding a transition to an existing list
        /// </summary>
        /// <param name="node">First transition</param>
        /// <param name="others">Alternative transitions</param>
        /// <returns>Modified list of transitions</returns>
        public static SuperList operator |(GraphNode node, SuperList others)
        {
            var list = new SuperList {
                node
            };

            list.AddRange(others);
            return(list);
        }
Example #2
0
 /// <summary>
 /// Shorthand for adding a transition to an existing list 
 /// </summary>
 /// <param name="node">First transition</param>
 /// <param name="others">Alternative transitions</param>
 /// <returns>Modified list of transitions</returns>
 public static SuperList operator |(OwinNode node, SuperList others)
 {
     var list = new SuperList { node };
     list.AddRange(others);
     return list;
 }