As IsDirectory is now not static, it can only be referenced via an instance of the class and not via the class name.

Any non-static member has to be referenced via a class instance. Static members are referenced via the class name. If you need to use IsDirectory() without reference to a class instance then it needs to be static which means it cannot directly access any non-static members.