Created
July 20, 2016 03:47
-
-
Save Ashwinning/f2b1e7ca99b5715e213732b8af775fca to your computer and use it in GitHub Desktop.
Convert Int[] Array to string in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Returns comma separated string containing each int from an Array. | |
/// </summary> | |
/// <param name="ints"></param> | |
/// <returns></returns> | |
public string IntArrayToString(int[] ints) | |
{ | |
return string.Join(",", ints.Select(x => x.ToString()).ToArray()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment