的字段的類名,特別是在覆蓋Asp.net MVC ValidationAttribute時,是否有可能知道具有帶屬性標記的字段的類名? (AttributeUsage是AttributeTargets.Property)C#屬性:如何知道具有屬性
public class UniqueAttribute: ValidationAttribute
public override bool IsValid(object value)
{
// how to know which class has this attribute?
}