Convert System.Web.UI.WebControls.Unit to int in c#

前端 未结 7 1646
我在风中等你
我在风中等你 2021-01-20 15:07

How can I convert from an ASP.NET Unit structure to int in c#? Or reverse?

7条回答
  •  难免孤独
    2021-01-20 15:39

    Probably he need this:

     int myInt = 1;
     uint myUint = (uint)myInt;
    
     uint myUint = 1;
     int myInt = (int)myUint;
    

提交回复
热议问题