Get properties from derived class in base class

前端 未结 7 2253
面向向阳花
面向向阳花 2021-02-09 07:02

How do I get properties from derived class in base class?

Base class:

public abstract class BaseModel {
    protected static readonly Dictionary

        
7条回答
  •  梦如初夏
    2021-02-09 07:26

    Scan your assembly for all inherited classes from BaseModel and create dictionary like this:

    Dictionary>>
    

提交回复
热议问题