How to convert long to int in .net?

后端 未结 7 2451
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-18 15:19

I am developing window phone 7 application in silverlight. I am new to the window phone 7 application. I have the long value in String format as follows

String A         


        
7条回答
  •  迷失自我
    2021-02-18 16:00

    The maximum Int32 value in C# is 2,147,483,647, shorter than the 15 digits you require.

    Are you sure you need to convert this value to an int? It sounds like you'd be better off storing the value in a long, or leaving it as a String.

提交回复
热议问题