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.
  • 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
                • P Pete Zahir

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

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

                  Think about what the params arguments are doing - then think about why you might not be able to add other keywords. If it helps, you should go and read the documentation to get some hints.

                  This space for rent

                  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.

                    Mike HankeyM Offline
                    Mike HankeyM Offline
                    Mike Hankey
                    wrote on last edited by
                    #26

                    After the params keyword is issued a Zombie Apocalypse is set in motion and only a keen C# developer can issue a certain combination of keywords that will thwart the impending doom.

                    New version: WinHeist Version 2.2.2 Beta
                    tomorrow (noun): a mystical land where 99% of all human productivity, motivation and achievement is stored.

                    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.

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

                      Explain, with your own words or not, why this place calls itself 'The Lounge' and why the people react as they do.

                      The language is JavaScript. that of Mordor, which I will not utter here
                      This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                      "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                      J 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

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

                        When in doubt, use C++. :-)

                        The language is JavaScript. that of Mordor, which I will not utter here
                        This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                        "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                        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?

                          K Offline
                          K Offline
                          Kenneth Haugland
                          wrote on last edited by
                          #29

                          Show him some love[^] now :laugh:

                          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.

                            H Offline
                            H Offline
                            Herman T Instance
                            wrote on last edited by
                            #30

                            Why can't you read the friendly manual[^]?

                            In Word you can only store 2 bytes. That is why I use Writer.

                            J 1 Reply Last reply
                            0
                            • L Lost User

                              Explain, with your own words or not, why this place calls itself 'The Lounge' and why the people react as they do.

                              The language is JavaScript. that of Mordor, which I will not utter here
                              This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                              "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

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

                              No homework questions in the Lounge, please! :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

                              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
                                Super Lloyd
                                wrote on last edited by
                                #32

                                - because the compiler forbade it? - because Method<T>(params T[] values1, params T[] values2, params T[] values3) is a problem and hassel to understand without benefit?

                                All in one Menu-Ribbon Bar DirectX for WinRT/C# since 2013! Taking over the world since 1371!

                                1 Reply Last reply
                                0
                                • H Herman T Instance

                                  Why can't you read the friendly manual[^]?

                                  In Word you can only store 2 bytes. That is why I use Writer.

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

                                  Actually, the "friendly manual" isn't answering his question. It only confirms the statement in the assignment that you cannot add any parameters after the params keyword, but not why! :doh: Unless of course "B'cause Microsoft says so!" is an acceptable answer to the question... :rolleyes:

                                  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
                                  • H HobbyProggy

                                    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 Offline
                                    9 Offline
                                    9082365
                                    wrote on last edited by
                                    #34

                                    Fie upon your reasons. Because, because, because, that's why, that's why, that's why!

                                    I am not a number. I am a ... no, wait!

                                    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.

                                      M Offline
                                      M Offline
                                      Marc Clifton
                                      wrote on last edited by
                                      #35

                                      Because params is an array of undetermined length. If you write: void Foo(params int[] ints) and try to call it with: Foo(1, 2, 3, 4) How would it know that you want 4 as a separate argument, if the method were defined like this: void Foo(params int[] oneThroughThree, int fourth) OK, maybe it could use type information, but that leads to bottomless pits where the Wumpus will eat you. Marc

                                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                      D P G 3 Replies Last reply
                                      0
                                      • M Marc Clifton

                                        Because params is an array of undetermined length. If you write: void Foo(params int[] ints) and try to call it with: Foo(1, 2, 3, 4) How would it know that you want 4 as a separate argument, if the method were defined like this: void Foo(params int[] oneThroughThree, int fourth) OK, maybe it could use type information, but that leads to bottomless pits where the Wumpus will eat you. Marc

                                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                        D Offline
                                        D Offline
                                        Dave Kreskowiak
                                        wrote on last edited by
                                        #36

                                        Homework Marc. You're doing his homework for him.

                                        A guide to posting questions on CodeProject

                                        Click this: Asking questions is a skill. Seriously, do it.
                                        Dave Kreskowiak

                                        M 1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          Because params is an array of undetermined length. If you write: void Foo(params int[] ints) and try to call it with: Foo(1, 2, 3, 4) How would it know that you want 4 as a separate argument, if the method were defined like this: void Foo(params int[] oneThroughThree, int fourth) OK, maybe it could use type information, but that leads to bottomless pits where the Wumpus will eat you. Marc

                                          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

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

                                          Great, thanks

                                          D 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