[Mono-list] Mono-list Digest, Vol 30, Issue 30

Robert Jordan robertj at gmx.net
Mon Oct 29 11:42:49 EDT 2007


Ashish Goyal wrote:
> Hello, How can I find that The Mono I am running on the system is 32-bit or
> 64-bit?

using System;
using System.Runtime.InteropServices;

class Test
{
	static void Main ()
	{
		Console.WriteLine (Is64bit);
	}

	static bool Is64bit {
		get { return Marshal.SizeOf (typeof (IntPtr)) == 8; }
	}
}


Robert



More information about the Mono-list mailing list