title: Blazor naming convention for private variables used on razor pages
body: <p>In Blazor when I have a private field / property in the code that will be used in the diplay / razor page, should it have a naming convention of camelcase (e.g. someVariable) or should I have an underscore with camel case (e.g. _anotherVariable).</p>
  <p>E.g. in code</p>
  <pre><code>private string someVariable {get; set;}
  private string _anotherVariable {get; set;}
  </code></pre>
  <p>in razor</p>
  <p><a href="https://i.stack.imgur.com/xwkeb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xwkeb.png" alt="enter image description here" /></a></p>
  <p>I've found documentation for both styles - just looking for what's considered 'best' in the community of Blazor.</p>
  <p>Other questions I have - should the variables be marked 'private' or 'protected' and do they need to be properties with the {get; set;} or should I only do this for public properties??</p>
  <p>Thanks in advance for helping me straighten this out.</p>