[Mono-list] Debug.Assert - a cross-platform issue

Martin Thwaites monoforum at my2cents.co.uk
Sat Nov 22 01:00:37 UTC 2014

(This is my personal opinion, I'm not a collaborator)  This is also a
question that is better for the dev list.

My personal opinion is that if it's a verbatim port from the
referencesource on github, that you shouldn't be precluded from

Anything beyond that would be questionable I would imagine.  You have to
remember that the referencesource isn't the same decompiled source from
previous versions.  I'm not sure where the patent promise would sit in that

I know a few people who fell under this same rule, so I would like to see
some clarity too.


On 22 November 2014 00:25, MarLOne <InfoSeeker002 at gmail.com> wrote:

> Hello,
> I have to thank Microsoft to open-source the .Net library allowing me to
> read their code to get to the bottom of Microsoft's treatment (even I have
> already asserted the value at runtime) of default values for the
> System.Diagnostics.DefaultTraceListener. For those interested in reading
> this can find it here:  DefaultTraceListener.cs
> <
> https://github.com/Microsoft/referencesource/blob/9da503f9ef21e8d1f2905c78d4e3e5cbb3d6f85a/System/compmod/system/diagnostics/DefaultTraceListener.cs
> >
> . The default value of property that determines the reaction of
> Debug.Assert
> is set here:  assertuienabled
> <
> https://github.com/Microsoft/referencesource/blob/9da503f9ef21e8d1f2905c78d4e3e5cbb3d6f85a/System/compmod/system/diagnostics/AssertSection.cs
> >
> .
> It is not true that Mono does not create an instance of
> DefaultTraceListener
> on start up otherwise code like this:
> DefaultTraceListener defListener = Debug.Listeners["Default"] as
> DefaultTraceListener;
> will produce a null value for defListener.
> It will be good if these classes and assemblies from Microsoft open-sources
> are incorporated verbatim into Mono to replace its inconsistent code.
> In this thread some one had pointed out to me that because I admitted
> routinely disassembling Microsoft's assemblies, in accordance to Mono's
> contribution rule <
> http://www.mono-project.com/Contributing#Important_Rules>
> , I cannot contribute.
> With Microsoft now open-sourcing their .Net library, what will happen to
> this "contribution rule"?
> MarL
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Debug-Assert-a-cross-platform-issue-tp4662174p4664765.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141122/01dc7b2c/attachment.html>

More information about the Mono-list mailing list