Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>Convert a List<string> to string.</summary>
- /// <param name="listToConvert">The list to convert.</param>
- /// <returns>A string with the contents of the list.</returns>
- public static string ListToString(List<string> listToConvert)
- {
- var listAsString = string.Empty;
- foreach (var line in listToConvert)
- {
- listAsString += line + Environment.NewLine;
- }
- return listAsString;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement