Skip to content

Commit 951da55

Browse files
authoredMay 12, 2020
Adds Obsolete attribute to Console methods (#105)
***NO_CI***
1 parent 06fc2e0 commit 951da55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎source/nanoFramework.CoreLibrary/System/Console.cs

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static class Console
2222
/// Writes the specified string value to the standard output stream.
2323
/// </summary>
2424
/// <param name="value">The value to write.</param>
25+
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
2526
public static void Write(string value)
2627
#pragma warning restore S4200 // Native methods should be wrapped
2728
{
@@ -33,6 +34,7 @@ public static void Write(string value)
3334
/// Writes the specified string value, followed by the current line terminator, to the standard output stream.
3435
/// </summary>
3536
/// <param name="value">The value to write.</param>
37+
[Obsolete("This method is going to be removed in a future version. Call Debug.Write instead.")]
3638
public static void WriteLine(string value)
3739
#pragma warning restore S4200 // Native methods should be wrapped
3840
{

0 commit comments

Comments
 (0)
Please sign in to comment.