title: How to add struct parameters into List
body: <p>I am having interface in that I have a List</p>
  
  <pre><code>     public interface IDisplayListQueue 
       {
       void BindQueueData();
      List&lt;HomePage.QueueListItem&gt; QueueDataSource { get; set; }
      }
  </code></pre>
  
  <p>In HomePage.cs, I am having the struct</p>
  
  <pre><code>       public struct QueueListItem
          {
          public int QueueID { get; set; }
          public int LinkText { get; set; }
          public int Uid { get; set; }
  
        }
  </code></pre>
  
  <p>In the page Load i am taking one switch to add the list values.So I am trying to binding the QueueListItem  ,but it shows the error.My code is </p>
  
  <pre><code>          switch (queue.QueueTypeID)
             {
             case (int)QueryType.DataEntry:
              dataEntry.QueueDataSource.Add(queue.QueueID, queueName, sentinel );
              break;
             case (int)QueryType.Sort:
               Sort.QueueDataSource.Add(queue.QueueID, queueName, sentinel );
              break;
             }
  </code></pre>
  
  <p>The error I am getting is no overload 'Add' takes 3 arguments. So how to add values to the QueueListItem  which is in interface</p>