kill me
This commit is contained in:
36
Password Manager/Profiles/IList.cs
Normal file
36
Password Manager/Profiles/IList.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace Profiles
|
||||
{
|
||||
abstract class IList<T>
|
||||
{
|
||||
protected T[] list;
|
||||
|
||||
public int Length
|
||||
{
|
||||
get
|
||||
{
|
||||
return list.Length;
|
||||
}
|
||||
}
|
||||
|
||||
public T this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return list[index];
|
||||
}
|
||||
}
|
||||
|
||||
public IList()
|
||||
{
|
||||
this.list = new T[0];
|
||||
}
|
||||
|
||||
public abstract void Add(T item);
|
||||
public abstract void Remove(T item);
|
||||
public abstract T SearchByName(string name);
|
||||
public void Clear()
|
||||
{
|
||||
list = new T[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user