Improve performance of DateTime.Kind property. (#38501)
authorSingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
Thu, 9 Jul 2020 18:24:37 +0000 (21:24 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 18:24:37 +0000 (14:24 -0400)
commit1bfe73041f5389552d1c549be9b992a61f1d7f5f
tree78d50462e9e3e297035df36ccb625c026a83fd56
parent7c178cf9c55e8203b6c6797a79769988562b52b2
Improve performance of DateTime.Kind property. (#38501)

* Improve performance of DateTime.Kind.

* Remove the unused field.

* Fixing whitespaces.

Co-authored-by: Ben Adams <thundercat@illyriad.co.uk>
* Revert the changes and add AgressiveInlining

* Put the attribute on the getter.

* Update src/libraries/System.Private.CoreLib/src/System/DateTime.cs

Co-authored-by: Ben Adams <thundercat@illyriad.co.uk>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Private.CoreLib/src/System/DateTime.cs