草庐IT

UseInReporte

全部标签

c# - 获取具有特定值的自定义属性的所有属性

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Howtogetalistofpropertieswithagivenattribute?我有一个这样的自定义类publicclassClassWithCustomAttributecs{[UseInReporte(Use=true)]publicintF1{get;set;}publicstringF2{get;set;}publicboolF3{get;set;}publicstringF4{get;set;}}我有一个自定义属性UseInReporte:[System.AttributeUsage(Sy