HashMap or Property

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,
is there anything in the C# language that will allow you to retrieve a
value by a key, sort of like those in java? for instance

Object o = map.get("somekey");

i know there as to be something like this, but can't find it in
System.Utils. I have seen HashTable, but you must enumerate thru all
items and do a comparison until you find the key you are looking for
apparently.

thanks

.



Relevant Pages

  • Java/JSP Back End Processing
    ... I am new to both Java & JSP and am working on a project. ... that the best way to learn about a new language is to get involved in ... I have done this sort of thing in the past using CGI and Perl ...
    (comp.lang.java.programmer)
  • Re: Converting code from NetLogo
    ... Java is a much worse language than NetLogo to write the sort of program that NetLogo is designed for. ... However, because NetLogo is written in Java, and they provide an API, you can use Java /with/ NetLogo, if you need to write a program that combines the sort of thing that NetLogo does with some bits that are awkward or impractical in that language. ...
    (comp.lang.java.programmer)
  • Re: Comparing Lisp conditions to Java Exceptions
    ... All the ISO standards in the world will not make the world ... Nothing keeps you from annotating your program with exceptions based on what ... language should adhere to your theory. ... Curiously, although you don't say it, Java has the opposite problem. ...
    (comp.lang.lisp)
  • Re: casts
    ... This is why most shit programmers refuse to learn languages including ... C Sharp and Java. ... compiler in a later edition of Visual Basic, ... language for processing data. ...
    (comp.lang.c)
  • Re: C, really portable?
    ... > Wait, is Java a modern language superior to C, or is it still ... It is a much better OO language than C++, ... It depends what you are doing, Java aims for rigorous portability - the same ... regardless of platform. ...
    (comp.lang.c)