Reputation: 7403
[Seems to be a bug]
I'm getting a really weird behavior on Visual Studio 2015. Every time I have a const inside a method in a controller and try to use an IF statement, my VS 2015 crashes.
public ActionResult About()
{
if() //<-crashes when I try to add this line
const string filename = @"c:\temp\test.txt";
ViewBag.Message = "Your application description page.";
return View();
}
Has anyone faced this issue as well?
Upvotes: 1
Views: 329
Reputation: 7403
Seems to be a bug in Visual Studio 2015 Preview. Thanks for the comments
Upvotes: 2