diff options
author | Anipik <anirudhagnihotry098@gmail.com> | 2019-04-29 22:04:02 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-04-29 23:10:14 +0300 |
commit | c94f19427833a8473ad27b58fa755a44c2a28271 (patch) | |
tree | 15deee97644049155ca1c9796dd1996f83802322 /netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs | |
parent | c6c25db0c2e9ccb60f2da751ea58e711ae874a40 (diff) |
synving with coreclr
Diffstat (limited to 'netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs')
-rw-r--r-- | netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs b/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs index 4052d558a5d..8b0ea368a67 100644 --- a/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs +++ b/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs @@ -625,8 +625,8 @@ namespace System throw new ArgumentNullException(nameof(info)); } - _dateTime = (DateTime)info.GetValue("DateTime", typeof(DateTime)); // Do not rename (binary serialization) - _offsetMinutes = (short)info.GetValue("OffsetMinutes", typeof(short)); // Do not rename (binary serialization) + _dateTime = (DateTime)info.GetValue("DateTime", typeof(DateTime))!; // Do not rename (binary serialization) + _offsetMinutes = (short)info.GetValue("OffsetMinutes", typeof(short))!; // Do not rename (binary serialization) } // Returns the hash code for this DateTimeOffset. |