How to get a Static property with Reflection

后端 未结 8 1309
旧巷少年郎
旧巷少年郎 2020-11-28 05:44

So this seems pretty basic but I can\'t get it to work. I have an Object, and I am using reflection to get to it\'s public properties. One of these properties is static an

8条回答
  •  时光说笑
    2020-11-28 06:47

    Try this C# Reflection link.

    Note I think that BindingFlags.Instance and BindingFlags.Static are exclusive.

提交回复
热议问题