title: ZXing - Using the generic type BarcodeWriter<TOutput> requires 1 type argument ZXing.NET.Mobile
body: <p>I have been trying to generate a QRCode using ZXing.Net.Mobile and ZXing.Net.Mobile.Forms: 
  <a href="https://github.com/Redth/ZXing.Net.Mobile" rel="nofollow noreferrer">https://github.com/Redth/ZXing.Net.Mobile</a> and have come across the following error:</p>
  
  <p>"Severity   Code    Description Project File    Line    Suppression State
  Error   CS0305  Using the generic type 'BarcodeWriter' requires 1 type arguments   TestApp.Android G:\Tests\TestApp\TestApp\TestApp.Android\SelectedBookingPage.cs 70  Active
  "</p>
  
  <p>This is my code:</p>
  
  <pre><code>BarcodeWriter writer = new BarcodeWriter()
              {
                  Format = BarcodeFormat.QR_CODE,
                  Options = new ZXing.Common.EncodingOptions
                  {
                      Height = 600,
                      Width = 600
                  }
              };
  </code></pre>
  
  <p>Other examples I have seen call BarcodeWriter() like above just fine, <a href="https://csharp.hotexamples.com/examples/ZXing/BarcodeWriter/-/php-barcodewriter-class-examples.html" rel="nofollow noreferrer">https://csharp.hotexamples.com/examples/ZXing/BarcodeWriter/-/php-barcodewriter-class-examples.html</a> to list a few.</p>
  
  <p>Why does calling BarcodeWriter require a type argument. How can I properly instansiate an instance of a BarcodeWriter?</p>