title: Consume data from pipeline
body: <p>How to consume data from pipeline when writing cmdlets in C#?</p>
  
  <p>For example I have two classes:</p>
  
  <p>This one produces data:</p>
  
  <pre><code>[Cmdlet(VerbsCommon.Get, "Numbers")]
  public class GetNumbers : Cmdlet
  {
      protected override void ProcessRecord()
      {
          WriteObject(new[] {1, 2, 3, 4, 5}, true);
      }
  }
  </code></pre>
  
  <p>And this one must consume this data:</p>
  
  <pre><code>[Cmdlet(VerbsCommon.Find, "Numbers")]
  public class FindNumbers: Cmdlet
  {
      protected override void ProcessRecord()
      {
          foreach (var variable in %Input%) // Where do I get input? Any ReadRecord or something else?
          {
              if (variable % 2 == 0)
              {
                  WriteObject(variable);
              }
          }
      }
  }
  </code></pre>
  
  <p>In this way:</p>
  
  <pre><code>Get-Numbers | Find-Numbers
  </code></pre>