private static string createMessage(BaseConstraint constraint) { return(string.Format("The compare methode of a constraint class can't be reentered during execution of the compare. The exception occurred in an instance of '{0}' with constraint: {1}.", constraint.GetType().ToString(), constraint.ConstraintToString())); }