diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-05-28 13:04:13 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-05-28 19:14:19 +0300 |
commit | a67c6a2b52980daf2ac43100fc859bcd7b77ef55 (patch) | |
tree | f492caac1e6ba46e600099971af9e44f85952d20 /netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs | |
parent | 5cbe93884798684efbb81abd79e0e2a170544b75 (diff) |
Add and apply nullable attributes (dotnet/coreclr#24679)
* Add and apply nullable attributes
* Adapt to API review decisions
* Address PR feedback
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
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 d2cb079f801..e328726a407 100644 --- a/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs +++ b/netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs @@ -658,7 +658,7 @@ namespace System public static DateTimeOffset Parse(string input, IFormatProvider? formatProvider) { if (input == null) ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input); - return Parse(input!, formatProvider, DateTimeStyles.None); // TODO-NULLABLE: https://github.com/dotnet/csharplang/issues/538 + return Parse(input!, formatProvider, DateTimeStyles.None); // TODO-NULLABLE: Remove ! when [DoesNotReturn] respected } public static DateTimeOffset Parse(string input, IFormatProvider? formatProvider, DateTimeStyles styles) @@ -689,7 +689,7 @@ namespace System { if (input == null) ThrowHelper.ThrowArgumentNullException(ExceptionArgument.input); if (format == null) ThrowHelper.ThrowArgumentNullException(ExceptionArgument.format); - return ParseExact(input!, format!, formatProvider, DateTimeStyles.None); // TODO-NULLABLE: https://github.com/dotnet/csharplang/issues/538 + return ParseExact(input!, format!, formatProvider, DateTimeStyles.None); // TODO-NULLABLE: Remove ! when [DoesNotReturn] respected } // Constructs a DateTimeOffset from a string. The string must specify a |