[Mono-list] Platform dependent class (UIManager)

Miguel de Icaza miguel@ximian.com
14 Sep 2002 13:04:38 -0400


Hello,

> I need to create a platform dependent class to interface with XWindow or Win32 Api.
> How this must be implemented in the "Mono"?  
> 
> I have interest in developing the System.IO.Path and Microsoft.Win32.Registry classes. How I must proceed?

System.IO.Path is already implemented.

My suggestion for implementing the Registry classes in particular is to
have two versions of it:

	RegistryClassWindows.cs
	RegistryClassUnix.cs

And in the build we include one or the other depending on the platform
we are building for.

Best wishes,
Miguel.