Jon Hanna 7e6194b61b Use GetValueOrDefault() over Value when Nullable<T> known non-null
GetValueOrDefault() is an easily-inlined access to a field as this
will hold the correct value for both HasValue and !HasValue cases.
The Value property in comparison contains a branch on a check that the
Nullable<T> has its internal hasValue flag to decide whether to throw
InvalidOperationException or not.

Hence when a nullable type is known to have a value (not be null) and
one wants the value, rather than to possibly trigger the exception-throw
GetValueOrDefault() has a slight performance benefit over Value.

Accordingly, replace calls to the Value property with calls to
GetValueOrDefault() when previous checks or assignments guarantee the
value is not null.
2015-12-15 19:15:58 +00:00
2015-11-15 21:25:47 +13:00
2015-12-13 20:40:33 +13:00
2015-12-04 23:54:38 +13:00
2014-09-12 21:43:17 +12:00
2014-07-01 09:16:28 +12:00
2013-07-25 16:07:02 +12:00
2015-01-25 16:28:25 +13:00
S
Description
Json.NET 是一种适用于 .NET 的常用高性能 JSON 框架
https://github.com/JamesNK/Newtonsoft.Json.git
Readme
27 MiB
Languages
C# 99.3%
PowerShell 0.7%