How could I convert data from string to long in c#

MayureshP picture MayureshP · Jun 13, 2011 · Viewed 244.6k times · Source

How could i convert data from string to long in C#?

I have data

String strValue[i] ="1100.25";

now i want it in

long l1;

Answer

Will Bellman picture Will Bellman · Jun 21, 2013

This answer no longer works, and I cannot come up with anything better then the other answers (see below) listed here. Please review and up-vote them.

Convert.ToInt64("1100.25")

Method signature from MSDN:

public static long ToInt64(
    string value
)