System.ComponentModel.DataAnnotations.CompareAttribute
Provides an attribute that compares two properties.
namespace System.ComponentModel.DataAnnotations
{
public class CompareAttribute : ValidationAttribute
{
public string OtherProperty { get; }
public string OtherPropertyDisplayName { get; }
public CompareAttribute(string otherProperty);
}
}