小编Sha*_*ann的帖子

if / endif在C#中检测到“无法访问的代码”

本地一切正常,但出现“无法检测到代码”错误。

这是这段代码:

private string GetRedirectUriForCurrentConfiguration()
{
    #if (DEBUG || DebugDev)
        return "http://localhost:1855/";
    #endif
    return "http://172.16.40.39:1855";
}
Run Code Online (Sandbox Code Playgroud)

我在第四行收到“无法访问”消息 return "http://172.16.40.39:1855";

此语句设置正确吗?

c# unreachable-code

-1
推荐指数
1
解决办法
259
查看次数

标签 统计

c# ×1

unreachable-code ×1