Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /// <summary>Convert a List<string> to string.</summary>
  2. /// <param name="listToConvert">The list to convert.</param>
  3. /// <returns>A string with the contents of the list.</returns>
  4. public static string ListToString(List<string> listToConvert)
  5. {
  6. var listAsString = string.Empty;
  7.  
  8. foreach (var line in listToConvert)
  9. {
  10. listAsString += line + Environment.NewLine;
  11. }
  12.  
  13. return listAsString;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement