public int GetIndex() { var i = 0; foreach (var page in Book.GetPages()) { if (page == this) return i; i++; } return -1; }