Virtual/Abstract fields in C#

前端 未结 9 1169
逝去的感伤
逝去的感伤 2020-12-16 10:19

Is it possible to have a virtual/abstract field in a C# class? If so, how is it done?

9条回答
  •  有刺的猬
    2020-12-16 10:43

    Properties can be virtual, may be you can gain on that. At least it is heavily used in NHibernate.

    Basically you have to have a method to virtualize, how should the virtual field work?

提交回复
热议问题