title: Is This Singleton Declaration Incorrect?
body: <p>I'm trying to diagnose a potential thread-safety issue found in my program, and have some suspicions that a singleton object written to provide data is not initialized correctly. The object's initialization is as follows:</p>
  
  <pre><code>public class Singleton
  {
      public static readonly Singleton Instance = new Singleton();
  
      private Singleton()
      {
      }
  }
  </code></pre>
  
  <p>The code that wants to request data from the instance would directly access <code>Instance</code>. Which is not in-line with basically every piece of sample singleton code I see, where a getter is used to access a private static <code>instance</code>. Could this be causing thready-safety issues in my program?</p>