Exemplo n.º 1
0
 public void Merge(concat Group)
 {
     foreach (var s in Group.strings) {
         if(!this.strings.Contains(s)) {
             this.strings.Add(s);
         }
     }
 }
Exemplo n.º 2
0
  /// <summary>
  /// Merge onto the end 
  /// </summary>
  /// <param name="Group"></param>
  public void Merge(concat Group)
  {
    /// add the delimiter between strings
    if (_accumulator.Length > 0
        & Group._accumulator.Length > 0) _accumulator.Append(_delimiter);

    ///_accumulator += Group._accumulator;
    _accumulator.Append(Group._accumulator.ToString());

  }
Exemplo n.º 3
0
    /// <summary>
    /// Merge onto the end
    /// </summary>
    /// <param name="Group"></param>
    public void Merge(concat Group)
    {
        /// add the delimiter between strings
        if (accumulator.Length > 0 & Group.accumulator.Length > 0)
        {
            accumulator.Append(delimiter);
        }

        ///accumulator += Group.accumulator;
        accumulator.Append(Group.accumulator.ToString());
    }
Exemplo n.º 4
0
    /// <summary>
    /// Merge onto the end 
    /// </summary>
    /// <param name="Group"></param>
    public void Merge(concat Group)
    {
        /// add the delimiter between strings
        if (accumulator.Length > 0 & Group.accumulator.Length > 0)
        {
            accumulator.Append(delimiter);
        }

        ///accumulator += Group.accumulator;
        accumulator.Append(Group.accumulator.ToString());
    }
        private List <int> Eval(List <int> c1, ConsoleElement c2, concat _ops)
        {
            List <int> result = new List <int>();

            if (_ops == concat.addition)
            {
                result = c1 + c2;
                return(result);
            }
            if (_ops == concat.substraction)
            {
                result = c1 - c2;
                return(result);
            }
            if (_ops == concat.intersection)
            {
                result = c1 * c2;
                return(result);
            }
            return(result);
        }
Exemplo n.º 6
0
	                            parse(concat(substring(d.Actual_Datekey, 1, 4), '.', substring(d.Actual_Datekey, 5, 2), '.', substring(d.Actual_Datekey, 7, 2), ' ', substring(d.TimeKey, 1, 2), ':', substring(d.TimeKey, 3, 2)) as datetime) as avgangsTid