开发者

C# How to Display platform target

How to disp开发者_JAVA技巧lay platform target.

I have an .net window form which is compiled for x86 os how? do i display platform target on a label.

Thank you.


If you are looking for 32 bit vs 64 bit you can check the size of an IntPtr (it will be either 32 bits or 64 bits as per the documentation).

public static string Platform
{
    get 
    {
        if (IntPtr.Size == 8)
            return "x64";
        else
            return "x86";
    }
}


This link might help you, this has the list of contents to help you display what you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜