public bool Equals(IMediaEntity other) { if (Id == null || other == null || Id != other.Id) { return(false); } if (Indices == null || other.Indices == null) { return(Indices == other.Indices); } return(Indices.ContainsSameObjectsAs(other.Indices, true)); }