title: C# define an array of objects
body: <p>I tried everything i could and googled about it too, but i seem to be stuck</p>
  
  <p>i have an object that looks like this:</p>
  
  <pre><code>SubmitJob(HTSignCreator.XMPieProduction.XMPUser XMPUser, string inJobTicket, string inPriority, string inTouchPointID, HTSignCreator.XMPieProduction.Property[] inProps)
  </code></pre>
  
  <p>I defined </p>
  
  <pre><code>var user = new XMPieProduction.XMPUser
                      {
                          Username = "user",
                          Password = "pass"
                      };
  </code></pre>
  
  <p>the only problem i have is with this HTSignCreator.XMPieProduction.Property[] inProps argument....</p>
  
  <p>the HTSignCreator.XMPieProduction.Property has only two string attributes (m_name and m_value),,,</p>
  
  <p>I am using a webservice that gave me this structure..</p>
  
  <p>I tried everything to create that inProps argument but nothing seems to work,,,</p>
  
  <p>I tried: </p>
  
  <pre><code>HTSignCreator.XMPieProduction.Property props = new HTSignCreator.XMPieProduction.Property
                      {
                          m_Name = "0",
                          m_Value = "0"
                      };
  </code></pre>
  
  <p>but when i call jobId = productionWrapper.Client.SubmitJob(user, ticketId, "0", "0", props);
  it will error our saying that the props argument is invalid...</p>
  
  <p>I dont know how to define that Property[] argument...</p>
  
  <p>any ideas ???</p>