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. get getter and get setter, or is it getter get and getter set?

get getter and get setter, or is it getter get and getter set?

Scheduled Pinned Locked Moved The Weird and The Wonderful
pythoncomquestionlearning
16 Posts 14 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.
  • M Marc Clifton

    public bool GetName { get; set; }

    :sigh: Marc

    Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    W Offline
    W Offline
    Worried Brown Eyes
    wrote on last edited by
    #2

    My name is True (when I'm almost channeling Elvis Costello), so that's a bit of luck.

    G 1 Reply Last reply
    0
    • M Marc Clifton

      public bool GetName { get; set; }

      :sigh: Marc

      Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #3

      Better get set for the name?

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • M Marc Clifton

        public bool GetName { get; set; }

        :sigh: Marc

        Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #4

        It's obviously intended to hold the name of your offspring or lineage[^]. Or possibly the name of the git[^] who wrote it. :-D


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        • M Marc Clifton

          public bool GetName { get; set; }

          :sigh: Marc

          Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

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

          I'm assuming that, since it returns a bool, it will throw an exception if no name is present? Otherwise it would have returned a nullable bool ofcourse.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          1 Reply Last reply
          0
          • M Marc Clifton

            public bool GetName { get; set; }

            :sigh: Marc

            Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

            R Offline
            R Offline
            Roland M Smith
            wrote on last edited by
            #6

            Depending on Who you ask, it might be You better you better you bet.

            G 1 Reply Last reply
            0
            • W Worried Brown Eyes

              My name is True (when I'm almost channeling Elvis Costello), so that's a bit of luck.

              G Offline
              G Offline
              GenJerDan
              wrote on last edited by
              #7

              But your name is Stewart, not Alison. :^)

              We won't sit down. We won't shut up. We won't go quietly away. YouTube and My Mu[sic], Films and Windows Programs, etc.

              1 Reply Last reply
              0
              • M Marc Clifton

                public bool GetName { get; set; }

                :sigh: Marc

                Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                N Offline
                N Offline
                Nathan Minier
                wrote on last edited by
                #8

                That needs to be framed; it's a work of art!

                "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                1 Reply Last reply
                0
                • M Marc Clifton

                  public bool GetName { get; set; }

                  :sigh: Marc

                  Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                  B Offline
                  B Offline
                  Bernhard Hiller
                  wrote on last edited by
                  #9

                  To name or not to name, that's the question.

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    public bool GetName { get; set; }

                    :sigh: Marc

                    Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                    G Offline
                    G Offline
                    Gary Wheeler
                    wrote on last edited by
                    #10

                    Eww. Please make it stop...

                    Software Zen: delete this;

                    1 Reply Last reply
                    0
                    • R Roland M Smith

                      Depending on Who you ask, it might be You better you better you bet.

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #11

                      Hmm. Maybe this value is used on the eminence front-end?

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        public bool GetName { get; set; }

                        :sigh: Marc

                        Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        G Offline
                        G Offline
                        Gary Wheeler
                        wrote on last edited by
                        #12

                        public bool NameRequired { get; set; }

                        Software Zen: delete this;

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          public bool GetName { get; set; }

                          :sigh: Marc

                          Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                          K Offline
                          K Offline
                          Kirk 10389821
                          wrote on last edited by
                          #13

                          It is clearly a Typo... They meant:

                          public bool GitName { get; set; }

                          P 1 Reply Last reply
                          0
                          • K Kirk 10389821

                            It is clearly a Typo... They meant:

                            public bool GitName { get; set; }

                            P Offline
                            P Offline
                            Peter_in_2780
                            wrote on last edited by
                            #14

                            Kirk 10389821 wrote:

                            public bool GitName { git; sit; }

                            ftfy ;P

                            Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                            1 Reply Last reply
                            0
                            • M Marc Clifton

                              public bool GetName { get; set; }

                              :sigh: Marc

                              Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                              B Offline
                              B Offline
                              Brisingr Aerowing
                              wrote on last edited by
                              #15

                              From the data type, I would assume that this is used in a query of some sort to signify whether to get a Name field from some data source. Although, from your recent postings, I probably am way off base with that thought.

                              What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                              1 Reply Last reply
                              0
                              • M Marc Clifton

                                public bool GetName { get; set; }

                                :sigh: Marc

                                Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                                V Offline
                                V Offline
                                V 0
                                wrote on last edited by
                                #16

                                Needs intellisense to clarify! :-D

                                /** sets the GetName property. */
                                public bool GetName { get; set; }

                                V.

                                (MQOTD rules and previous solutions)

                                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