Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Class with comments that say "Do not use"

Class with comments that say "Do not use"

Scheduled Pinned Locked Moved The Weird and The Wonderful
visual-studio
16 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D DaveAuld

    Wouldn't have classed that as a message for Coding Horrors, but more a question for the Lounge? The .net framework documentation is full of classes and methods that have 'Not to be used directly from user code, internal use only' or words to that effect.

    Dave Don't forget to rate messages!
    Find Me On: Web|Facebook|Twitter|LinkedIn
    Waving? dave.m.auld[at]googlewave.com

    A Offline
    A Offline
    Abhinav S
    wrote on last edited by
    #3

    daveauld wrote:

    Wouldn't have classed that as a message for Coding Horrors, but more a question for the Lounge?

    I was debating where to it, thought perhaps this was safer. :)

    1 Reply Last reply
    0
    • A Abhinav S

      I came across this class today - RenderingEventArgs. This is part of the Silverlight System.Windows.Media namespace. When I tried to use it, intellisense gave me a message "Do not use". If you go to its definition, all thta the code comment tells me is "Do not use". Now that's interesting. Anyone else came across any class / namespace MS provides that says "Do not use". :)

      S Offline
      S Offline
      Stanciu Vlad
      wrote on last edited by
      #4

      It looks to me like the "Do not press" red button :laugh:

      I have no smart signature yet...

      1 Reply Last reply
      0
      • A Abhinav S

        I came across this class today - RenderingEventArgs. This is part of the Silverlight System.Windows.Media namespace. When I tried to use it, intellisense gave me a message "Do not use". If you go to its definition, all thta the code comment tells me is "Do not use". Now that's interesting. Anyone else came across any class / namespace MS provides that says "Do not use". :)

        K Offline
        K Offline
        Keith Barrow
        wrote on last edited by
        #5

        Abhinav S wrote:

        Anyone else came across any class / namespace MS provides that says "Do not use".

        The whole of VB? At least it should :-).

        Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

        R 1 Reply Last reply
        0
        • K Keith Barrow

          Abhinav S wrote:

          Anyone else came across any class / namespace MS provides that says "Do not use".

          The whole of VB? At least it should :-).

          Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

          R Offline
          R Offline
          Ray Cassick
          wrote on last edited by
          #6

          Ahhhhhhhhhhh bite me. Sorry, just a VB.NET user starting the day out in a bad mood already. Nothing personal :)


          LinkedIn[^] | Blog[^] | Twitter[^]

          K 1 Reply Last reply
          0
          • A Abhinav S

            I came across this class today - RenderingEventArgs. This is part of the Silverlight System.Windows.Media namespace. When I tried to use it, intellisense gave me a message "Do not use". If you go to its definition, all thta the code comment tells me is "Do not use". Now that's interesting. Anyone else came across any class / namespace MS provides that says "Do not use". :)

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #7

            Lots of places; especially where a class/method has been deprecated in favour of a newer version.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            A O 2 Replies Last reply
            0
            • P Pete OHanlon

              Lots of places; especially where a class/method has been deprecated in favour of a newer version.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              A Offline
              A Offline
              Abhinav S
              wrote on last edited by
              #8

              Should they not say 'Deprecated' instead. "Do not use" makes me want to use it. :)

              C 1 Reply Last reply
              0
              • R Ray Cassick

                Ahhhhhhhhhhh bite me. Sorry, just a VB.NET user starting the day out in a bad mood already. Nothing personal :)


                LinkedIn[^] | Blog[^] | Twitter[^]

                K Offline
                K Offline
                Keith Barrow
                wrote on last edited by
                #9

                No problem, can't expect to make a statement like that without comment from the VBers knocking around :laugh:

                Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

                L 1 Reply Last reply
                0
                • A Abhinav S

                  I came across this class today - RenderingEventArgs. This is part of the Silverlight System.Windows.Media namespace. When I tried to use it, intellisense gave me a message "Do not use". If you go to its definition, all thta the code comment tells me is "Do not use". Now that's interesting. Anyone else came across any class / namespace MS provides that says "Do not use". :)

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #10

                  That was done by mistake. See: http://forums-silverlight-dit.neudesic.com/forums/p/115994/262528.aspx[^]

                  Regards, Nish


                  Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                  A C 2 Replies Last reply
                  0
                  • P Pete OHanlon

                    Lots of places; especially where a class/method has been deprecated in favour of a newer version.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                    My blog | My articles | MoXAML PowerToys | Onyx

                    O Offline
                    O Offline
                    O Phil
                    wrote on last edited by
                    #11

                    I think there is an ObsoleteAttribute to handle this situation, isn't it ?

                    1 Reply Last reply
                    0
                    • K Keith Barrow

                      No problem, can't expect to make a statement like that without comment from the VBers knocking around :laugh:

                      Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #12

                      Yeah but your getting some decent votes on the comment ;)

                      ASCII stupid question, get a stupid ANSI

                      1 Reply Last reply
                      0
                      • N Nish Nishant

                        That was done by mistake. See: http://forums-silverlight-dit.neudesic.com/forums/p/115994/262528.aspx[^]

                        Regards, Nish


                        Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                        A Offline
                        A Offline
                        Abhinav S
                        wrote on last edited by
                        #13

                        Cool - thanks. I somehow missed this link earlier. :)

                        1 Reply Last reply
                        0
                        • A Abhinav S

                          Should they not say 'Deprecated' instead. "Do not use" makes me want to use it. :)

                          C Offline
                          C Offline
                          Chris Meech
                          wrote on last edited by
                          #14

                          If a can of gasoline had a picture with a lit match with an X through it, would that mean you would want to throw a lit match in the can. :)

                          Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                          1 Reply Last reply
                          0
                          • N Nish Nishant

                            That was done by mistake. See: http://forums-silverlight-dit.neudesic.com/forums/p/115994/262528.aspx[^]

                            Regards, Nish


                            Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                            C Offline
                            C Offline
                            Chris Meech
                            wrote on last edited by
                            #15

                            So in other words, instead of a "Do not use" comment, it really should say, "Don't forget to cast". :)

                            Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                            1 Reply Last reply
                            0
                            • A Abhinav S

                              I came across this class today - RenderingEventArgs. This is part of the Silverlight System.Windows.Media namespace. When I tried to use it, intellisense gave me a message "Do not use". If you go to its definition, all thta the code comment tells me is "Do not use". Now that's interesting. Anyone else came across any class / namespace MS provides that says "Do not use". :)

                              G Offline
                              G Offline
                              Gregory Gadow
                              wrote on last edited by
                              #16

                              Don't stuff beans up your nose[^]

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups