public SemanticValidator(FileFormatVersions format, ApplicationType app) { FileFormat = format; AppType = app; _curReg = new SemanticConstraintRegistry(format, app); }
public UniqueAttributeValueConstraint(byte attribute, bool caseSensitive, bool partLevel, SemanticConstraintRegistry reg) : base(SemanticValidationLevel.Part) { _attribute = attribute; _reg = reg; _caseSensitive = caseSensitive; _partLevel = partLevel; }
public UniqueAttributeValueConstraint(byte attribute, bool caseSensitive, bool partLevel, SemanticConstraintRegistry reg) : base(SemanticValidationLevel.Part) { _attribute = attribute; _reg = reg; _partLevel = partLevel; _comparer = caseSensitive ? StringComparer.Ordinal : StringComparer.OrdinalIgnoreCase; _values = new HashSet <string>(_comparer); }