[Mono-list] Making code conditional on "not running on mono"?
Paolo Molaro
lupus@ximian.com
Thu, 15 May 2003 11:13:30 +0200
On 05/14/03 Jonathan Pryor wrote:
> Yes, though it may require some code refactoring and use of Reflection.
> Basically, move all of the System.DirectoryServices code into its own
> assembly, dynamically load the assembly at run time, and dynamically
> invoke methods in the loaded assembly.
>
> This may not be ideal, as it replaces compile-time type-safe code with
> dynamic, reflection-using code, but it should work for the short term.
If you use interfaces, you can have type-safe code and void dynamically
invoking code.
In the particular case, though, the best thing would be to just submit
stubs for the missing functionality.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better