Hello,
I'm looking for the simplest map table implementation in C# and this is what
I came up with..
internal class MapPair
{
internal class MapPair( int nFrom, string sTo )
{
m_nFrom = nFrom;
m_sTo = sTo;
}
internal int From { get { return m_nFrom; } }
internal str To { get { return m_sTo; } }
}
MapPair[] pairs =
{
new MapPair( 1, "300" ),
new MapPair( 15, "250" ),
new MapPair( 40, "340" ),
new MapPair( 235, "3333" )
}
Is there a simpler way to do it? Something like
Array[int,string] pairs =
{
{1, "300"},
{15,"250"},
{40,"340"},
{235,"3333"}
}
Thanks!!!