An attribute that used in a declarative fashion, activates the EqualTo validation Gear over the decorated property or field.

Namespace: Keystone.Clockwork
Assembly: Keystone.Clockwork (in Keystone.Clockwork.dll)

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true, AllowMultiple = false)] 
public class EqualToAttribute : ComparisonTrueAttribute
This language is not supported or no code example is available.

Return Value

The original Validate<Input if the specified value is valid.
Exception type Condition


If the Validate<Input value is not valid.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6


Xamarin, Mono