????//???????   ????????y????á?
public class BookList2 : IBookList
{
private List<string> booklist = new List<string>();
#region IBookList ???
void IBookList.Add(string BookName)
{
booklist.Add(BookName);
}
void IBookList.Append(string BookName)
{
booklist.Insert(booklist.Count?? BookName);
}
void IBookList.Remove(int position)
{
booklist.Remove(position.ToString());
}
int IBookList.Count
{
get
{
return booklist.Count;
}
}
string IBookList.this[int index]
{
get
{
return booklist[index];
}
set
{
booklist[index] = value;
}
}
#endregion
}
class text
{
static void Main()
{
//??????á?
BookList bklist = new BookList();
bklist.Add("?????????");
Console.Write("??????????????:?????{0}"?? bklist[0]);
IBookList ibklist = (IBookList)bklist;    //?????????????????????????????????
ibklist.Add("$$$$$???");// ?????????????????
Console.Write("?????????????????y??{0}"?? ibklist[1]);
//???????   ????y????á?
BookList2 bklist2 = new BookList2();
//??????bklist2.Add("???");??????????磺
//??????£?
IBookList Ibk = (IBookList)bklist2;
Ibk.Add("$$$$??????");        //?y??????
Console.Write("??????????????:??y??{0} "?? Ibk[0]);//?y????á?
Console.ReadLine();
}
}
}