Samir Bhogayta
How do you mark a method obsolete?
By Samir Bhogayta in C# on Jun 25 2016
  • kajal rane
    Apr, 2019 7

    declare Obsolete attribute before the method eg. [Obsolete] public void Obsoletedemo() {} or [Obsolete message="Obsoletedemo"] public void Obsoletedemo() {}

    • 0
  • Samir Bhogayta
    Jun, 2016 25

    [Obsolete] public int Foo() {…} or [Obsolete(\”This is a message describing why this method is obsolete\”)] public int Foo() {…}

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS