marking method or property as depricated

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lucky

    #1

    marking method or property as depricated

    Hi guys,
    i want to mark some of my methods and properties as DEPRICATED. is it
    possible to do that? and if possible, then how would i do that?

    i would appricate any help.

    Lucky

  • Jon Skeet [C# MVP]

    #2
    Re: marking method or property as depricated

    lucky <tushar.n.patel @gmail.comwrote :
    i want to mark some of my methods and properties as DEPRICATED. is it
    possible to do that? and if possible, then how would i do that?
    >
    i would appricate any help.
    Use System.Obsolete Attribute. See MSDN for more information.

    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    If replying to the group, please do not mail me too

    Comment

    • Patrick Steele

      #3
      Re: marking method or property as depricated

      In article <1171877845.214 597.320650@a75g 2000cwd.googleg roups.com>,
      tushar.n.patel@ gmail.com says...
      Hi guys,
      i want to mark some of my methods and properties as DEPRICATED. is it
      possible to do that? and if possible, then how would i do that?
      >
      i would appricate any help.
      Try the "Obsolete" attribute. You can configure that to be either a
      warning or an error.

      --
      Patrick Steele

      Comment

      Working...