How to declare a variable that can be used by every method? | C#
<p>I want to ask you how to declare a variable that can be used by every method?  </p>

<p>I tried making the method's access type public but that didn't let me used its variable across other methods  </p>

<p>Moreover, I basically want to accumulate that variable with different values across different methods that's why I am asking this.  </p>

<p><strong>NOTE:</strong> I want to avoid making any static classes.   </p>

<p>EDIT:  </p>

<p>For example, I did  </p>

<pre><code>public decimal MiscMethod()  
{
    decimal value1 += 23m;  
}  

public decimal AutoMethod()  
{
    decimal value 1 += 34;
}
</code></pre>