i want to pass a property as a parameter to another property custom attribute but i can't because its not static Model ex :
public class model1
{
public DateTime param1 { get; set; }
[CustomAttribute (param1)]
public string param2 { get; set; }
}
public class CustomAttribute : ValidationAttribute
{
private readonly DateTime _Date;
public CustomAttribute(DateTime date)
{
_Date= date;
}
}
because i want to make a custom validation between this two attributes .