internal string HasConflictingDefinition(SimpleType otherSimpleType)
{
if (otherSimpleType == null)
return nameof(otherSimpleType);
if (MaxLength != otherSimpleType.MaxLength)
return ("MaxLength");
if (!string.Equals(BaseType, otherSimpleType.BaseType, StringComparison.Ordinal))
return ("BaseType");
if ((BaseSimpleType == null && otherSimpleType.BaseSimpleType != null) &&
(BaseSimpleType.HasConflictingDefinition(otherSimpleType.BaseSimpleType)).Length != 0)
return ("BaseSimpleType");
return string.Empty;
}