How to convert long to int in .net?

后端 未结 7 2480
爱一瞬间的悲伤
爱一瞬间的悲伤 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 15:59

    You can convert the input long to Object and then convert it to int32.

    Object a = e;
    int w = Convert.ToInt32(a); 
    

    It worked for me.

提交回复
热议问题