Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnipik <anirudhagnihotry098@gmail.com>2019-04-29 22:04:02 +0300
committerMarek Safar <marek.safar@gmail.com>2019-04-29 23:10:14 +0300
commitc94f19427833a8473ad27b58fa755a44c2a28271 (patch)
tree15deee97644049155ca1c9796dd1996f83802322 /netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs
parentc6c25db0c2e9ccb60f2da751ea58e711ae874a40 (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.cs4
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.