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