Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287790: c# Check if not null goes wrong

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Jan 16, 2012 12:52:49 PM
Updated Jan 16, 2012 9:09:49 PM
Resolved Jan 16, 2012 4:31:26 PM
Priority Major
Type Bug
Fix versions Next
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions 6.1
Fixed in build 6.5.1.2465
namespace ConsoleApplication1
{
    using System;

    internal class Program
    {
        public event EventHandler Updated;

        internal void F()
        {
            if (Updated != null)
            {
                Updated(this, new EventArgs());
              //^^^^^^^ - check if not null warning WRONG!!!
            }
        }

        private static void Main(string[] args)
        {
        }
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>