EDN Admin
Well-known member
I wonder sometimes why R# gives me a hint that an expression is always going to be false when I dont think thats so. For example in a method Ive defined the following (this is just a fake example):<br/> <br/> tempData = _service.GettTempData(token);<br/> <br/> ...more code<br/> <br/> if (tempData == null)<br/> throw new NullReferenceException("tempData is null");<br/> <br/> I get a little squiggly over the tempData == null saying this is always going to be false. How so??<hr class="sig C# Web Developer
View the full article
View the full article