Exclude property from getType().GetProperties()

后端 未结 6 1535
故里飘歌
故里飘歌 2020-12-24 07:06

Hi i\'m working in a class library using C#, and i have some classes with some properties.

I just wanna know if i can add something to exclude some properties form t

6条回答
  •  不知归路
    2020-12-24 07:26

    I don't think you can do this directly, but you could add your own custom attributes and filter them out yourself...

提交回复
热议问题