title: How to get name to refer to property rather than class in VB.NET?
body: <p>Compare the following sets of VB.NET classes:</p>
  
  <pre><code>Public Class MyProperties
      Private Shared m_customer As Customer
      Public Shared Property Customer() As Customer
          ' getter and setter code 
      End Property
  End Class
  
  Public Class Customer
      Public Field1 As String
  End Class
  
  Public Class MyOtherClass
       Sub Proc1
            Debug.WriteLine(Customer.Field1)  ' this does not compile
       End Sub
  End Class
  
  -----------------------------------------
  
  Public Class Customer
      Public Field1 As String
  End Class
  
  Public Class MyOtherClass
      Private Shared m_customer As Customer
      Public Shared Property Customer() As Customer
          ' getter and setter code 
      End Property
      Sub Proc1       
          Debug.WriteLine(Customer.Field1)  ' this compiles
      End Sub
  End Class
  </code></pre>
  
  <p>What can be done to get the top segment to compile?</p>
  
  <p>Could <a href="http://msdn.microsoft.com/en-us/library/hya04w5b%28v=vs.100%29.aspx" rel="nofollow">this</a> help?  </p>