how to make a stack which returns the value of a given key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghostantanieh
    New Member
    • Jun 2010
    • 1

    how to make a stack which returns the value of a given key

    hey there
    I want to create a stack which will have the following methods:
    getValueOf ("key")
    getKeyOf ("value")
    addKeyAndValue ("key" "value")
    delete ("key")

    can anyone please help me as I am very new to C sharp
  • Christian Binder
    Recognized Expert New Member
    • Jan 2008
    • 218

    #2
    I think the Dictionary-class will be the best choice for your requirements.
    Have a look:

    Comment

    Working...