提交 947769e7 编写于 作者: A Alfred Myers 提交者: Jeremy Kuhne

LongFileTime.ToDateTimeOffset perf (dotnet/corefx#28129)



Commit migrated from https://github.com/dotnet/corefx/commit/e2c62e0d283bf6479684db9cfb081ef0bcacf05f
上级 afb83588
......@@ -23,6 +23,6 @@ internal struct LongFileTime
internal long TicksSince1601;
#pragma warning restore CS0649
internal DateTimeOffset ToDateTimeOffset() => DateTimeOffset.FromFileTime(TicksSince1601);
internal DateTimeOffset ToDateTimeOffset() => new DateTimeOffset(DateTime.FromFileTimeUtc(TicksSince1601));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册