public void Merge(concat Group) { foreach (var s in Group.strings) { if(!this.strings.Contains(s)) { this.strings.Add(s); } } }
/// <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()); }
/// <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); }
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