public override bool Equals(object other) { if (this == other) { return true; } if (!(other is LevenshteinAutomataAttribute)) { return false; } return automata.Equals(((LevenshteinAutomataAttribute)other).automata); }