public bool Equals(ISymbolEntity other) { if (Text != other.Text) { return false; } if (Indices == null || other.Indices == null) { return Indices == other.Indices; } if (Indices.Length != other.Indices.Length) { return false; } for (int i = 0; i < Indices.Length; ++i) { if (Indices[i] != other.Indices[i]) { return false; } } return true; }
public bool Equals(ISymbolEntity other) { if (Text != other.Text) { return(false); } if (Indices == null || other.Indices == null) { return(Indices == other.Indices); } if (Indices.Length != other.Indices.Length) { return(false); } for (int i = 0; i < Indices.Length; ++i) { if (Indices[i] != other.Indices[i]) { return(false); } } return(true); }
public bool Equals(ISymbolEntity other) { if (Text != other.Text) { return(false); } if (Indices == null || other.Indices == null) { return(Indices == other.Indices); } return(Indices.ContainsSameObjectsAs(other.Indices, true)); }
public bool Equals(ISymbolEntity other) { if (Text != other.Text) { return false; } if (Indices == null || other.Indices == null) { return Indices == other.Indices; } return Indices.ContainsSameObjectsAs(other.Indices, true); }