我知道有很多线程在谈论这个,但到目前为止我还没有找到一个可以直接帮助我的情况。我有我需要从静态和非静态方法访问的类的成员。但如果成员是非静态的,我似乎无法从静态方法中找到它们。
public class SomeCoolClass
{
    public string Summary = "I'm telling you";
    public void DoSomeMethod()
    {
        string myInterval = Summary + " this is what happened!";
    }
    public static void DoSomeOtherMethod()
    {
        string myInterval = Summary + " it didn't happen!";
    }
}
public class MyMainClass
{
    SomeCoolClass myCool = new SomeCoolClass();
    myCool.DoSomeMethod();
    SomeCoolClass.DoSomeOtherMethod();
}
您如何建议我从任何一种方法中获取摘要?