Use List.AddRange(collection As IEnumerable(Of T)) method.
It allows you to append at the end of your list another collection/list.
Example:
List<string> initialList = new List<string>();
// Put whatever you want in the initial list
List<string> listToAdd = new List<string>();
// Put whatever you want in the second list
initialList.AddRange(listToAdd);
Try using list.AddRange(VTSWeb.GetDailyWorktimeViolations(VehicleID2));
Use Concat
or Union
extension methods. You have to make sure that you have this declaration using System.Linq;
in order to use LINQ extensions methods.
Use the AddRange
method.
Use .AddRange
to append any Enumrable collection to the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With