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 Soapbox
  4. sorry...it's a bit of a programming question

sorry...it's a bit of a programming question

Scheduled Pinned Locked Moved The Soapbox
questioncsharpvisual-studioannouncement
3 Posts 2 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.
  • W Offline
    W Offline
    William Winner
    wrote on last edited by
    #1

    In the Q&A, I was just told that VS 2005 doesn't have an Average function standard. Am I just crazy but if he's using c#, doesn't that mean that any version of it has System.Math?

    P 1 Reply Last reply
    0
    • W William Winner

      In the Q&A, I was just told that VS 2005 doesn't have an Average function standard. Am I just crazy but if he's using c#, doesn't that mean that any version of it has System.Math?

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

      And which average would it use? Mean, Median, etc.... Linq does provide an Average function, but it doesn't give you a way to choose which type of average to apply. BTW - pedantically, VS2005 is the IDE; you're thinking of .NET 2 which was introduced at the same time (and doesn't use LINQ).

      "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

      W 1 Reply Last reply
      0
      • P Pete OHanlon

        And which average would it use? Mean, Median, etc.... Linq does provide an Average function, but it doesn't give you a way to choose which type of average to apply. BTW - pedantically, VS2005 is the IDE; you're thinking of .NET 2 which was introduced at the same time (and doesn't use LINQ).

        "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

        W Offline
        W Offline
        William Winner
        wrote on last edited by
        #3

        Actually, it wasn't me saying that VS2005 didn't have it. I know that 2005 is an IDE. Which is why my question was, if he's using C# doesn't he have System.Math? But, I guess looking at it, System.Math doesn't have an average function (also generally known as mean and what Linq uses). Really, though, you don't need to have a mean function to calculate the mean, it's about as basic a function as you can write. I just wanted to make sure I wasn't crazy thinking that any version of C# had a System.Math library.

        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