ECMA-334 - C# Language Specification
ECMA-334 - C# Language Specification PDF
or
//Detect Browser version and Support IE
if(Request.Browser.Type.ToUpper().Contains("IE")){
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="~/Content/html5shiv/js/html5shiv.min.js"></script>
<script src="~/Content/respond/js/respond.min.js"></script>
}
long unixTimeSecond = DateTimeOffset.Now.ToUnixTimeSeconds();
long unixTimeMilliSecond = DateTimeOffset.Now.ToUnixTimeMilliseconds();
long epochTicks = new DateTime(1970, 1, 1).Ticks;
long unixTimeSecond = ((DateTime.Now.Ticks - epochTicks) / TimeSpan.TicksPerSecond);
ControllerBase.Request
same with ControllerBase.ControllerContext.HttpContext.Request
,
so just set ControllerBase.ControllerContext.HttpContext
as mocked object, ex:
var target = Substitute.ForPartsOf<MyController>();
var mockedHttpContext = new DefaultHttpContext();
var mockedQueryString = "?q1=a+b&q2=a%21b";
mockedHttpContext.Request.QueryString = new QueryString(mockedQueryString);
這是反組譯成 IL 碼的工具,
可以返組譯出 IL 碼, 安裝VS的時候會一併裝, 位置在 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools
<%@ WebHandler Language="C#" CodeBehind="proxy.ashx.cs" Class="PIPE.Host.proxy" %> |
The error message "git did not exit cleanly (exit code 1)" is a very general error message, in most of scenarios, just clean up local repository to resolve it, but sometimes it not actully caused by "not clean".
In my case, the reason is I tried to push large file that size over the postbuffer (default as 1M).
Edit .gitconfig
, set http.postBuffer
to larger amout.
git config --global http.postBuffer 102400