Tested in Visual Studio (You may need to restart the project).
 
Please let me know if the analyzer misses anything so I can fix it.