[mono-android] [MonoTouch] sharing code between mono touch and mono for android

James Briant jamie at binaryfinery.com
Tue Feb 28 08:56:25 UTC 2012


On Tue, Feb 28, 2012 at 12:50 AM, Miljenko Cvjetko <
mcvjetko at holisticware.net> wrote:

>
>  Why would partial classes be problem?
> It is just splitting code into  multiple files
>

Its no different than having #if/#endif, which you agreed was bad in your
earlier email. But instead of the compiler hitting an #if and ignoring
what's next, the compiler is never given the file in the first place. Its
no different. "I can't do what I want with the compiler, so I'll do it with
a preprocessor or makefile". Basically you're building three classes that
have the same name but are different. Its a hack.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120228/6e56fea7/attachment.html>


More information about the Monodroid mailing list