是否可以在同一域中的ngrok中打开多个端口?
就像是:
Fowarding http://example.ngrok.com:50001 - > 127.0.0.1:50001
Fowarding http://example.ngrok.com:50002 - > 127.0.0.1:50002
我在windows中工作,它对于debuging很有用 IIS Express
任何人都可以解释为什么静态属性为空?
class Program
{
static void Main(string[] args)
{
string s = Cc.P1; // is null
}
}
public class Cc
: Ca
{
static Cc()
{
P1 = "Test";
}
}
public abstract class Ca
{
public static string P1
{
get;
protected set;
}
}
Run Code Online (Sandbox Code Playgroud) 是否可以在 DATEADD 间隔参数中使用 case 表达式?
select DATEADD(case c1 when 1 then HOUR when 2 then DAY end, c2, date) from T
Run Code Online (Sandbox Code Playgroud)
Update1:对不起,我想在 where 子句中使用它
select * from T where DATEADD(case c1 when 1 then HOUR when 2 then DAY end, c2, date) < GETDATE()
Run Code Online (Sandbox Code Playgroud)
也许还有另一种选择。
提前致谢,
我使用一个外部服务,它为字符串属性响应空对象"{}".我可以使用一些属性来避免异常吗?
void should_deserialize()
{
var json = "{ \"p1\": {} }";
var res = JsonConvert.DeserializeObject<T1>(json);
}
class T1
{
public string P1 { get; set; }
}
Run Code Online (Sandbox Code Playgroud)