我可能问错了,但是你能/怎么能在类中找到字段......例如......publicclassHtmlPart{publicvoidRender(){//this.GetType().GetCustomAttributes(typeof(OptionalAttribute),false);}}publicclassHtmlForm{privateHtmlPart_FirstPart=newHtmlPart();[Optional]//或者也许我只是做错了......我怎样才能调用一个方法然后检查应用到它自身的属性?此外,为了这个问题-我只是好奇是否有可能在不知道/访问父类的情况下找到属