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. General Programming
  3. C#
  4. Customising the SortedArray class

Customising the SortedArray class

Scheduled Pinned Locked Moved C#
helpcsharpquestion
2 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.
  • S Offline
    S Offline
    Sreerag Gopinath
    wrote on last edited by
    #1

    Hi, I need to manipulate the 'SortedArray' class in .net so that it allows the entry of the same key more than once. At the same time, it should have all the other properties and methods as it had before. This is crucial to my project. I am totally unfamiliar with overriding the base classes to produce this kind of desired functionality. Could you spare some of your precious time to help me out with the problem ? -Sreerag

    C 1 Reply Last reply
    0
    • S Sreerag Gopinath

      Hi, I need to manipulate the 'SortedArray' class in .net so that it allows the entry of the same key more than once. At the same time, it should have all the other properties and methods as it had before. This is crucial to my project. I am totally unfamiliar with overriding the base classes to produce this kind of desired functionality. Could you spare some of your precious time to help me out with the problem ? -Sreerag

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I suspect you'd do better to take another container class, and either make it sorted, or simply sort it every time you add an item. I suspect that the requirement of items being unique is an assumption that could cause you grief in a lot of places within the class.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      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