[Mono-list] Implementation of 'System.Runtime.InteropServices.RuntimeEnvironment.cs'

Dominik Fretz lists@roboto.ch
Sat, 26 Apr 2003 02:22:45 +0200


This is a multi-part message in MIME format.
--------------060901080602080206000204
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello

Gonzalo Paniagua Javier wrote:
[snip]
> 
> And there's a simpler way:
> 
> public static string GetRuntimeDirectory ()
> {
> 	return Path.GetDirectoryName (typeof (int).Assembly.Location);
> }
> 
> -Gonzalo

Ok, I changed it and atttacht the file.
If this is okay, feel free to comit.

Greethings

Dominik


btw: sorry if this mail comes a second thime, send it with the wrong 
account.

--------------060901080602080206000204
Content-Type: text/plain;
 name="RuntimeEnvironment.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="RuntimeEnvironment.cs"


// System.Runtime.InteropServices/RuntimeEnvironment.cs
//
// Dominik Fretz (roboto@gmx.net)
//
// (C) 2003 Dominik Fretz

using System;
using System.IO;
using System.Reflection;

namespace  System.Runtime.InteropServices
{

	class RuntimeEnvironment
	{
		public RuntimeEnvironment()
		{
		}

		[MonoTODO]
		public static string SystemConfigurationFile 
		{
			get { return String.Empty; }
		}

		
		[MonoTODO]
		public static bool FromGlobalAccessCache( Assembly a)
		{
			throw new NotImplementedException ();
		}

	
		public static string GetRuntimeDirectory()
		{
			return Path.GetDirectoryName (typeof (int).Assembly.Location);	
		}

		public static string GetSystemVersion()
		{
			//TODO We give back the .Net (1.1) version nummber. Probabbly Environment.Version should also return this.
			return "v1.1.4322";
		}
		
	}
}


--------------060901080602080206000204--