Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Nullable: Internal.Console, System.ValueType
Browse files Browse the repository at this point in the history
  • Loading branch information
buyaa-n committed Mar 27, 2019
1 parent e5299f5 commit 47662dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/System.Private.CoreLib/src/Internal/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable
using System;
using System.Text;
using Microsoft.Win32.SafeHandles;
Expand All @@ -27,7 +28,7 @@ public static unsafe void Write(string s)
}
}

public static void WriteLine(string s) =>
public static void WriteLine(string? s) =>
Write(s + Environment.NewLine);

public static void WriteLine() =>
Expand Down
3 changes: 2 additions & 1 deletion src/System.Private.CoreLib/src/System/ValueType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
**
===========================================================*/

#nullable enable
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
Expand All @@ -22,7 +23,7 @@ namespace System
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public abstract class ValueType
{
public override bool Equals(object obj)
public override bool Equals(object? obj)
{
if (null == obj)
{
Expand Down

0 comments on commit 47662dc

Please sign in to comment.