Convert String Array to Long Array
June 3, 2010 at 11:08 am 1 comment
Hey folks,
As I told you I am back within no time.
Yesterday, I have faced a problem where I want to convert string array into long array. I need to search a lot in internet for solving this and after a lot finding I came to this simple solution.
string[] strArray = { “xyz”, “abc”, “def” };
Long[] lArray = Array.ConvertAll<string, long>(strArray, Convert.ToInt64);
it’s so simple, cheers
Entry filed under: ASP.Net. Tags: array conversion, convert array, string array to long array.
1.
Vimal | June 3, 2010 at 11:50 am
This is really a simple and awesome solution……….
Thanks
Pranav