Nie można uzyskać dostępu do elementu '<method>' z odwołaniem do instancji

Dostaję się do C # i mam ten problem:

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;
            }
        }
     }
 }

Mam ten kod na UserControl:

using MyDataLayer.Section1;

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

Wszystko działa dobrze, z wyjątkiem kiedy idę do dostępuProperty1. Intellisense daje mi tylko „Equals, GetHashCode, GetType, iToString„jako opcje. Gdy najeżdżam myszką naoItem.Property1, Visual Studio daje mi to wyjaśnienie:

MemberMyDataLayer.Section1.MyClass.MyItem.Property1.getcannot be accessed with an instance reference, qualify it with a type name instead

Nie jestem pewien, co to znaczy, zrobiłem kilka googli, ale nie byłem w stanie tego zrozumieć.

questionAnswers(9)

yourAnswerToTheQuestion