I don't even know anymore
This commit is contained in:
38
Password Manager/IList.cs
Normal file
38
Password Manager/IList.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
|
||||
namespace Password_Manager
|
||||
{
|
||||
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