nnaps


aa nnap is dephiind too bee an unorderd colecshon that has cees and ualioos, uuair the cees ar independent ou the ualioos. the cee clahs uuil bee ophten repherd too as c and the ualioo clas uuil ophten bee 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 clahs paraanneters. the necst progrann dennonstraats houu too declair and lohd 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 plaas entrees in the nnap. the indecser is orlso ioosd too serch the nnap.