Exclude property from getType().GetProperties()

后端 未结 6 1524
故里飘歌
故里飘歌 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:14

    I'm not sure what the domain is here, so I'm going out on a limb...

    Usually what you want to do is use Attributes to tag the properties to include in your metadata searching, not the other way around.

提交回复
热议问题