Member '<method>' cannot be accessed with an instance reference
<p>I am getting into C# and I am having this issue:</p>

<pre><code>namespace MyDataLayer
{
    namespace Section1
    {
        public class MyClass
        {
            public class MyItem
            {
                public static string Property1{ get; set; }
            }
            public static MyItem GetItem()
            {
                MyItem theItem = new MyItem();
                theItem.Property1 = "MyValue";
                return theItem;
            }
        }
     }
 }
</code></pre>

<p>I have this code on a UserControl:</p>

<pre><code>using MyDataLayer.Section1;

public class MyClass
{
    protected void MyMethod
    {
        MyClass.MyItem oItem = new MyClass.MyItem();
        oItem = MyClass.GetItem();
        someLiteral.Text = oItem.Property1;
    }
}
</code></pre>

<p>Everything works fine, except when I go to access <code>Property1</code>. The intellisense only gives me "<em>Equals</em>, <em>GetHashCode</em>, <em>GetType</em>, and <em>ToString</em>" as options. When I mouse over the <code>oItem.Property1</code>, Visual Studio gives me this explaination:</p>

<blockquote>
  <p><code>Member 'MyDataLayer.Section1.MyClass.MyItem.Property1.get' cannot be accessed with an instance reference, qualify it with a type name instead</code></p>
</blockquote>

<p>I am unsure of what this means, I did some googling but wasn't able to figure it out. Can anyone help this newbie out? </p>

<p>thanks,
anders</p>
