title: create dictionary entry containing List<int>
body: <p>So I'm trying to create a dictionary of colours in the form </p>
  
  <pre><code>Dictionary&lt;string,List&lt;int&gt;&gt; 
  </code></pre>
  
  <p>like so:</p>
  
  <pre><code>(colour:colourvals)
  </code></pre>
  
  <p>for example, if the colour was red:</p>
  
  <pre><code>("red":(255,0,0))
  </code></pre>
  
  <p>I'm very new to c# (about 1 week) but I have a fair amount of python experience. What I'm trying to achieve in python would look like so:</p>
  
  <pre><code>col_dict = {"red":(255,0,0),
              "blue":(255,0,0),
              "green":(255,0,0)}
  </code></pre>
  
  <p>Over to c#, after a lot of tinkering I finally managed to make something that works. This is the current code I have (which seems messy):</p>
  
  <pre><code>colDict = new Dictionary&lt;string, List&lt;int&gt;&gt;();
  colDict.Add("red", new List&lt;int&gt; { 200, 40, 40 }.ToList());
  colDict.Add("green", new List&lt;int&gt; { 40, 200, 40 }.ToList());
  colDict.Add("blue", new List&lt;int&gt; { 40, 40, 200 }.ToList());
  </code></pre>
  
  <p><strong>Firstly</strong>, is there a better way to do this?</p>
  
  <p><strong>Secondly</strong>, I then want to use the list values as the parameters for Color.FromArgb(). Is there some way I put the List from colDict into the parameters like:</p>
  
  <pre><code>Color.FromArgb(colDict["green"]);
  </code></pre>
  
  <p>or do I have to store the colour choice and then put each value in like so?</p>
  
  <pre><code>this.col = colDict[colour];
  Color.FromArgb(this.col[0],this.col[1],this.col[2]));
  </code></pre>
  
  <p>Thank you very much to anyone who can assist me! :)</p>