title: How to pass the In-argument parameters of windows workflow to a custom code activity properties?
body: <pre><code>        //adding parameters and invoking workflow but the properties inside the codeactivity is all
      static void Main(string[] args)
      {
        Activity workflow1 = new Workflow1();//activity
        IDictionary&lt;string, object&gt; parameters = new Dictionary&lt;string, object&gt;();
        parameters.Add("toFolder", @"C:\BackupByWorkFlow");//param1
        parameters.Add("fromFolder", @"C:\");//param2
         WorkflowInvoker.Invoke(workflow1, parameters);//invoke
      }
  
  // workflow1 contains sequence of activities
  
  // sequence-&gt;WhileBackup activity -&gt; and  other custom activities
  
        //Custom code activity in workflow is as below
      public sealed class WhileBackup : CodeActivity
       {
         // Defining properties
             public InArgument&lt;string&gt; Text { get; set; }
              public InArgument&lt;string&gt; toFolder { get; set; }//property is null
              public InArgument&lt;string&gt; fromFolder { get; set; }//property is null
              public int totalFiles { get; set; }
              public int currentFile;
              public  FileInfo[] files;
  
          // If your activity returns a value, derive from CodeActivity&lt;TResult&gt;
          // and return the value from the Execute method.
            protected override void Execute(CodeActivityContext context)
                    {
                         // Obtain the runtime value of the Text input argument
                         string text = context.GetValue(this.Text);
                   }
      }
  </code></pre>
  
  <p>The in-argument value of workflow is not null but the same in code activity in the same workflow is null.hence I want to know how to pass the value of the in argument of workflow to the code activity property.</p>