C# tip – Marking method or class as Obsolete/Deprecated

dotnet C#

Obsolete or Deprecated?

How do you mark a class or method as deprecated/obsolete?

By using the Obsolete attribute

Taswar Bhatti Avatar

Written by