title: How to return 2 value in c# method
body: <p>I created the function of c# to compare the price in my project.</p>
  
  <pre><code>public static decimal? SpecialPrice(decimal w, decimal p)
  {
      if (w &lt; p)
      {
          return p;
      }
      else if (w &gt; p &amp;&amp; p &gt; 0)
      {
          //return (w , p);
      }
      else
      {
          return w;
      }
  }
  </code></pre>
  
  <p>I want to return two variable ( w and p) when w > p and p >0 , but I don't know how can I return like that. Anyone know about it?</p>