2
* This file is part of the Twitterizer library <http://code.google.com/p/twitterizer/>
4
* Copyright (c) 2008, Patrick "Ricky" Smith <ricky@digitally-born.com>
7
* Redistribution and use in source and binary forms, with or without modification, are
8
* permitted provided that the following conditions are met:
10
* - Redistributions of source code must retain the above copyright notice, this list
11
* of conditions and the following disclaimer.
12
* - Redistributions in binary form must reproduce the above copyright notice, this list
13
* of conditions and the following disclaimer in the documentation and/or other
14
* materials provided with the distribution.
15
* - Neither the name of the Twitterizer nor the names of its contributors may be
16
* used to endorse or promote products derived from this software without specific
17
* prior written permission.
19
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
* POSSIBILITY OF SUCH DAMAGE.
30
using System.Collections;
32
namespace Twitterizer.Framework
34
public class TwitterStatusCollection : CollectionBase
36
public TwitterStatus this[int index]
40
return ((TwitterStatus)List[index]);
49
public int Add(TwitterStatus value)
51
return (List.Add(value));
54
public int IndexOf(TwitterStatus value)
56
return (List.IndexOf(value));
59
public void Insert(int index, TwitterStatus value)
61
List.Insert(index, value);
64
public void Remove(TwitterStatus value)
69
public bool Contains(TwitterStatus value)
71
// If value is not of type Int16, this will return false.
72
return (List.Contains(value));