title: how can I set a value in a setter in c#
body: <p>I want to add custom logic where my ulong will get set to 1 if it is 0 (default). Here's what I have:</p>
  
  <pre><code>    private ulong quantity;
  
      public ulong Quantity
      {
          get
          {
              return this.quantity;
          }
  
          set 
          {
              if (this.Quantity == 0)
              {
                  this.quantity = 1;
                  return;
              }
  
              this.Quantity = this.quantity;
          }
      }
  </code></pre>
  
  <p>However, I'm getting a compile error that says:</p>
  
  <p><code>Parameter 'value' of 'PurchaseForPayoutRequest.Quantity.set(ulong)' is never used</code></p>