Simple question:
var x = '<%=Request["myvar"]%>' || null;
why does resharper say "Code is heuristically unreachable", When this seems to work just fine?
Simple question:
var x = '<%=Request["myvar"]%>' || null;
why does resharper say "Code is heuristically unreachable", When this seems to work just fine?
You are setting x to a string value so it will never equal null. Therefore the || null is unreachable.
This should help: What does the construct x = x || y mean?