title: CodeActivity InArgument<T> accessing values of T
body: <p>I have a bit of a twist that is a little more trouble than I thought it would be. Normally I would have an InArgument and use it as below:</p>
  
  <pre><code>public InArgument&lt;Int32&gt; XYZ_ID { get; set; }
  public InArgument&lt;Int32&gt; XYZ_COUNT { get; set; }
  
  protected override IAsyncResult BeginExecute(...)
  {
  ....snip....
  _ABC_ID = XYZ_ID.Get(context),
  _ABC_Count = XYZ_COUNT.Get(context)
  </code></pre>
  
  <p>This works great and I thought a custom object we be close to the same process but I can't seem to figure it out. ActvUsrPrgmResults is just a class of properties such as AccountName, FirstName etc. So I passed it in like any other type.</p>
  
  <pre><code>public InArgument&lt;bool&gt; IsHappy { get; set; }
  public InArgument&lt;bool&gt; IsClapping { get; set; }
  public InArgument&lt;ActvUsrPrgmResults&gt; itm_ActvUsrPrgm { get; set; }
  </code></pre>
  
  <p>Accessing it though is a bit more difficult....for me.</p>
  
  <pre><code>protected override void Execute(CodeActivityContext context)
  {
      NewPerson x = new NewPerson
      {
          AccountName = this.itm_ActvUsrPrgm.Get(?????
          //this doesn't work either
          AccountName = itm_ActvUsrPrgm.?????
  </code></pre>
  
  <p>In other words I can't see how to access the properties of the itm_ActvUsrPrgm InArgument.</p>
  
  <p>Thank You for any help or direction
  JB</p>
  
  <h2>Additional Info</h2>
  
  <p>I have this CodeActivity in a ForEach (List). So each item in the generic collection is a single instance of ActvUsrPrgmResults. So I hand this off to my CodeActivity thinking I will have a handle to manipulate that item's data????</p>
  
  <h2>Interesting</h2>
  
  <p>Now based upon Will's comments I got to thinking about this slight of hand. It works but shouldn't there be a more elegant approach?</p>
  
  <pre><code>public InArgument&lt;bool&gt; IsHappy { get; set; }
  public InArgument&lt;bool&gt; IsClapping { get; set; }
  public InArgument&lt;ActvUsrPrgmResults&gt; itm_ActvUsrPrgm { get; set; }
  
  protected override void Execute(CodeActivityContext context)
  {
      ActvUsrPrgmResults y = itm_ActvUsrPrgm.Get(context);
      NewPerson x = new NewPerson
      {
          AccountName = y.AccountName....
  </code></pre>