/// <summary>
 /// Determines if this <see cref="ConstructorConstraint"/> object equals the given <see cref="IGenericConstraint"/> object.
 /// </summary>
 /// <param name="other">The <see cref="IGenericConstraint"/> object to compare with this object.</param>
 /// <returns>
 /// Returns true if this object object is equal to the other object, otherwise false.
 /// </returns>
 public bool Equals(IGenericConstraint other)
 {
     if (other is IConstructorConstraint)
     {
         return Equals((IConstructorConstraint)other);
     }
     else
     {
         return base.Equals(other);
     }
 }
 /// <summary>
 /// Determines if this <see cref="InheritanceConstraint"/> object equals the given <see cref="IGenericConstraint"/> object.
 /// </summary>
 /// <param name="other">The <see cref="IGenericConstraint"/> object to compare with this object.</param>
 /// <returns>
 /// Returns true if this object object is equal to the other object, otherwise false.
 /// </returns>
 public bool Equals(IGenericConstraint other)
 {
     if (other is InheritanceConstraint)
     {
         return Equals((IInheritanceConstraint)other);
     }
     else
     {
         return base.Equals(other);
     }
 }