Can't define static abstract string property

后端 未结 5 1123
别跟我提以往
别跟我提以往 2021-02-19 10:03

I\'ve run into an interesting problem and am looking for some suggestions on how best to handle this...

I have an abstract class that contains a static method that accep

5条回答
  •  别跟我提以往
    2021-02-19 10:51

    Static members do not have polymorphism, so they can't be abstract. :(

    If that's what you need, consider making a Singleton object, and reading the property off that object.

提交回复
热议问题