title: Using Static Texture2D's in Classes in XNA
body: <p>In XNA load content is called after init, which is fair enough, however its causing me some problems with loading textures.</p>
  
  <p>In Init i set the spriteTexture of a sprite to that of a Static Texture2D.</p>
  
  <p>In LoadContent i then set the value of the Static Texture2D. This works successfully.</p>
  
  <p>However the spriteTexture value is still null when it comes to the Draw() method, causing it to fail. How can I overcome this?</p>
  
  <p>have a feeling its to do with passing by value rather than reference. Any help? </p>
  
  <p>Thanks,
  Danny</p>
  
  <p>Code:
  <a href="http://pastebin.com/C92ADY7s" rel="nofollow">http://pastebin.com/C92ADY7s</a></p>