From b41bcba09a28094317d79f1f214de10cf5606e44 Mon Sep 17 00:00:00 2001 From: josesimoes Date: Tue, 12 May 2020 14:31:55 +0100 Subject: [PATCH] Adds Obsolete attribute to Console methods - These methods are to be replaced by Debug.Write and WriteLine available in Runtime.Native assembly. Signed-off-by: josesimoes --- source/nanoFramework.CoreLibrary/System/Console.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/nanoFramework.CoreLibrary/System/Console.cs b/source/nanoFramework.CoreLibrary/System/Console.cs index 7843cc3a..ebf9ccbc 100644 --- a/source/nanoFramework.CoreLibrary/System/Console.cs +++ b/source/nanoFramework.CoreLibrary/System/Console.cs @@ -22,6 +22,7 @@ public static class Console /// Writes the specified string value to the standard output stream. /// /// The value to write. + [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 { @@ -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. /// /// The value to write. + [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 {