Determines whether the specified System.Windows.Forms.Design.MaskDescriptor is equal to the current System.Windows.Forms.Design.MaskDescriptor.
- maskDescriptor
- The System.Windows.Forms.Design.MaskDescriptor to compare with the current System.Windows.Forms.Design.MaskDescriptor.
true if the specified System.Windows.Forms.Design.MaskDescriptor is equal to the current System.Windows.Forms.Design.MaskDescriptor; otherwise, false.
The MaskDescriptor.Equals(object) method determines whether maskDescriptor and the current mask descriptor describe the same mask.
This method returns true if the following conditions are met in both mask descriptors.
1. The MaskDescriptor.Mask property is the same for both mask descriptors.
2. The validating type is the same for both mask descriptors.
The MaskDescriptor.Name property is not considered, because the System.ComponentModel.MaskedTextProvider and System.Windows.Forms.MaskedTextBox classes do not use it.