Obsolete without a message (CA1041)
هذا المحتوى غير متوفر بلغتك بعد.
Key dotnet.codequality.obsolete-without-message · Severity info · Category codequality
Microsoft analyzer CA1041. Flags [Obsolete] with no message. Callers are told to stop, not what to use instead.
Incorrect
Section titled “Incorrect”[Obsolete]public void Send(string to) { }Correct
Section titled “Correct”[Obsolete("Use SendAsync(Message, CancellationToken); Send blocks a request thread.")]public void Send(string to) { }