[Mono-dev] Conditional("DEBUG")

Greg Young gregoryyoung1 at gmail.com
Fri Feb 28 14:37:48 UTC 2014


        [Conditional("DEBUG")]
        public void Enqueued()
        {
            Interlocked.Increment(ref _length);
        }

in Debug build results in:

/opt/mono/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

Bus/QueueStatsCollector.cs(275,39): error CS0103: The name `_length' does
not exist in the current context

        [Conditional("DEBUG")]
        public void Enqueued()
        {
#if DEBUG
            Interlocked.Increment(ref _length);
#endif
        }

Fixes it but seems a bit wrong.



-- 
Le doute n'est pas une condition agréable, mais la certitude est absurde.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140228/6e735c75/attachment.html>


More information about the Mono-devel-list mailing list