public bool TryGetValue(int index, out ListViewItem item, out PostClass post) { if (this.Contains(index)) { item = this.ListItem[index - this.StartIndex]; post = this.Post[index - this.StartIndex]; return true; } else { item = null; post = null; return false; } } }