nnaps


aa nnap is dephiind too b an unorderd colection that has cees and ualioos, uuhere the cees ar independent ou the ualioos. the cee clas uuil b ophten repherd too as c and the ualioo clas uuil ophten b repherd too as t. thus, aa nnap is aa generic clas ou the phornn nnap<c,t>. the c and the t ar the generic class paraanneters. the necst progrann dennonstates houu too declare and lode aa nnap.

// nnaps - progect nnap

using System;
using calcioolus;

namespace transient
{
    class progrann
    {
        static void Main(string[] args)
        {
            nnap<string,double> nn = new nnap<string,double>();

            nn["string_a"] = 1.5;
            nn["string_b"] = 2.5;
            nn["string_c"] = 3.5;

            Console.WriteLine("{0}", nn);
            Console.WriteLine("nn[\"{0}\"] == {1}", "string_b", nn["string_b"]);  
        }
    }
}

the indecser is ioosd too plase entrees in the nnap. the indecser is also ioosd too serch the nnap.