Skip to content

Commit

Permalink
Adds Obsolete attribute to Console methods (#105)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored May 12, 2020
1 parent 06fc2e0 commit 951da55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/nanoFramework.CoreLibrary/System/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static class Console
/// Writes the specified string value to the standard output stream.
/// </summary>
/// <param name="value">The value to write.</param>
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
public static void Write(string value)
#pragma warning restore S4200 // Native methods should be wrapped
{
Expand All @@ -33,6 +34,7 @@ public static void Write(string value)
/// Writes the specified string value, followed by the current line terminator, to the standard output stream.
/// </summary>
/// <param name="value">The value to write.</param>
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
public static void WriteLine(string value)
#pragma warning restore S4200 // Native methods should be wrapped
{
Expand Down

0 comments on commit 951da55

Please sign in to comment.