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. The Lounge
  3. C# doubt

C# doubt

Scheduled Pinned Locked Moved The Lounge
csharp
53 Posts 28 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.
  • P Pete Zahir

    Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

    I Offline
    I Offline
    Ian Shlasko
    wrote on last edited by
    #5

    I tried, but I'm just not very argumentative, and that function made a really good point.

    Proud to have finally moved to the A-Ark. Which one are you in?
    Author of the Guardians Saga (Sci-Fi/Fantasy novels)

    1 Reply Last reply
    0
    • P Pete Zahir

      Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

      S Offline
      S Offline
      Sascha Lefevre
      wrote on last edited by
      #6
      1. Take a look at the top of the page you posted on: "Technical discussions are encouraged, but click here to ask your programming question." 2) Because the CLR wouldn't know where the arguments intended to pass into the params-array end and the following start.

      If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

      1 Reply Last reply
      0
      • L Lost User

        We're also good at Maths and History Homework if you would like to post any of those for us?

        J Offline
        J Offline
        Johnny J
        wrote on last edited by
        #7

        How about woodshop? Can you fix me a birdhouse? :confused:

        Anything that is unrelated to elephants is irrelephant
        Anonymous
        -----
        The problem with quotes on the internet is that you can never tell if they're genuine
        Winston Churchill, 1944
        -----
        I'd just like a chance to prove that money can't make me happy.
        Me, all the time

        E 1 Reply Last reply
        0
        • P Pete Zahir

          Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

          S Offline
          S Offline
          Sascha Lefevre
          wrote on last edited by
          #8

          I don't doubt C# itself, just some parts of the BCL.

          If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

          P L 2 Replies Last reply
          0
          • P Pete Zahir

            Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

            H Offline
            H Offline
            HobbyProggy
            wrote on last edited by
            #9

            Because reasons.

            Rules for the FOSW ![^]

            if(this.signature != "")
            {
            MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
            }
            else
            {
            MessageBox.Show("404-Signature not found");
            }

            9 1 Reply Last reply
            0
            • D Duncan Edwards Jones

              Squay mmem os pippk* (* These are my own words but I don't see how anyone else will be able to understand them)

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

              You're my wife now![^] :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

              J D 2 Replies Last reply
              0
              • Richard DeemingR Richard Deeming

                You're my wife now![^] :D


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

                J Offline
                J Offline
                Johnny J
                wrote on last edited by
                #11

                My very best congratulations to the two of you! :thumbsup:

                Anything that is unrelated to elephants is irrelephant
                Anonymous
                -----
                The problem with quotes on the internet is that you can never tell if they're genuine
                Winston Churchill, 1944
                -----
                I'd just like a chance to prove that money can't make me happy.
                Me, all the time

                1 Reply Last reply
                0
                • Richard DeemingR Richard Deeming

                  You're my wife now![^] :D


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

                  D Offline
                  D Offline
                  Duncan Edwards Jones
                  wrote on last edited by
                  #12

                  Ironically that sketch really splits opinion in my household. I am near helpless with laughter while my wife stares at me as if I'm completely insane.

                  Richard DeemingR 1 Reply Last reply
                  0
                  • D Duncan Edwards Jones

                    Ironically that sketch really splits opinion in my household. I am near helpless with laughter while my wife stares at me as if I'm completely insane.

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

                    Is it too late to take her back and swap her? :)


                    "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
                    • S Sascha Lefevre

                      I don't doubt C# itself, just some parts of the BCL.

                      If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

                      P Offline
                      P Offline
                      Pete Zahir
                      wrote on last edited by
                      #14

                      Why have you delet helpful post and do this

                      S 1 Reply Last reply
                      0
                      • J Johnny J

                        How about woodshop? Can you fix me a birdhouse? :confused:

                        Anything that is unrelated to elephants is irrelephant
                        Anonymous
                        -----
                        The problem with quotes on the internet is that you can never tell if they're genuine
                        Winston Churchill, 1944
                        -----
                        I'd just like a chance to prove that money can't make me happy.
                        Me, all the time

                        E Offline
                        E Offline
                        Eytukan
                        wrote on last edited by
                        #15

                        lol we are here again!

                        Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                        J 1 Reply Last reply
                        0
                        • P Pete Zahir

                          Why have you delet helpful post and do this

                          S Offline
                          S Offline
                          Sascha Lefevre
                          wrote on last edited by
                          #16

                          I realised I was "helping" you with an assignment which actually was the opposite of helping - because it made thinking on your part unneccessary. Help should be given in a way that pushes the learner into the right direction, lifting confusion, but not presenting the answer right away. Confucius is attributed to have said: Tell me and I forget Show me and I remember Let me do it and I understand. If you have trouble with an assignment, don't ask for the answer. Try to make it clear to yourself why you can't answer it and ask people to help you better understand the assignment so that you can answer it yourself.

                          If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

                          OriginalGriffO R 2 Replies Last reply
                          0
                          • E Eytukan

                            lol we are here again!

                            Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                            J Offline
                            J Offline
                            Johnny J
                            wrote on last edited by
                            #17

                            Where were you before? :confused:

                            Anything that is unrelated to elephants is irrelephant
                            Anonymous
                            -----
                            The problem with quotes on the internet is that you can never tell if they're genuine
                            Winston Churchill, 1944
                            -----
                            I'd just like a chance to prove that money can't make me happy.
                            Me, all the time

                            E 1 Reply Last reply
                            0
                            • D Duncan Edwards Jones

                              Squay mmem os pippk* (* These are my own words but I don't see how anyone else will be able to understand them)

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

                              Obligatory Dilbert[^]

                              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                              "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
                              • S Sascha Lefevre

                                I realised I was "helping" you with an assignment which actually was the opposite of helping - because it made thinking on your part unneccessary. Help should be given in a way that pushes the learner into the right direction, lifting confusion, but not presenting the answer right away. Confucius is attributed to have said: Tell me and I forget Show me and I remember Let me do it and I understand. If you have trouble with an assignment, don't ask for the answer. Try to make it clear to yourself why you can't answer it and ask people to help you better understand the assignment so that you can answer it yourself.

                                If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

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

                                :thumbsup:

                                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                "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

                                R 1 Reply Last reply
                                0
                                • J Johnny J

                                  Where were you before? :confused:

                                  Anything that is unrelated to elephants is irrelephant
                                  Anonymous
                                  -----
                                  The problem with quotes on the internet is that you can never tell if they're genuine
                                  Winston Churchill, 1944
                                  -----
                                  I'd just like a chance to prove that money can't make me happy.
                                  Me, all the time

                                  E Offline
                                  E Offline
                                  Eytukan
                                  wrote on last edited by
                                  #20

                                  Here[^] I think the first time ones should be excused & redirected than jumping over them. :~

                                  Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                                  J 1 Reply Last reply
                                  0
                                  • P Pete Zahir

                                    Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

                                    C Offline
                                    C Offline
                                    Chris Losinger
                                    wrote on last edited by
                                    #21

                                    No

                                    image processing toolkits | batch image processing

                                    1 Reply Last reply
                                    0
                                    • E Eytukan

                                      Here[^] I think the first time ones should be excused & redirected than jumping over them. :~

                                      Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                                      J Offline
                                      J Offline
                                      Johnny J
                                      wrote on last edited by
                                      #22

                                      Welcome back! :doh:

                                      Anything that is unrelated to elephants is irrelephant
                                      Anonymous
                                      -----
                                      The problem with quotes on the internet is that you can never tell if they're genuine
                                      Winston Churchill, 1944
                                      -----
                                      I'd just like a chance to prove that money can't make me happy.
                                      Me, all the time

                                      E 1 Reply Last reply
                                      0
                                      • P Pete Zahir

                                        Explain in your own words why you cannot pass additional arguments in a function after using the params keyword.

                                        F Offline
                                        F Offline
                                        Forogar
                                        wrote on last edited by
                                        #23

                                        It's terrible how people just don't want to help you with your homework on this forum. A long time ago I actually used to be a Professor trying to teach Computer Science to small groups of selected, gifted students, so let me explain, in my own words, how to answer this question as I have many times in the past when dealing with similar issues: "I leave this one for my students to answer themselves after class. Hand in your answers by the end of the week and I will assess and awards the appropriate number of points. This will count towards your final grade."

                                        - I would love to change the world, but they won’t give me the source code.

                                        1 Reply Last reply
                                        0
                                        • J Johnny J

                                          Welcome back! :doh:

                                          Anything that is unrelated to elephants is irrelephant
                                          Anonymous
                                          -----
                                          The problem with quotes on the internet is that you can never tell if they're genuine
                                          Winston Churchill, 1944
                                          -----
                                          I'd just like a chance to prove that money can't make me happy.
                                          Me, all the time

                                          E Offline
                                          E Offline
                                          Eytukan
                                          wrote on last edited by
                                          #24

                                          :-\

                                          Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                                          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