pupublic IMap get_Item(int Index)
{
if (Index > m_array.Count || Index < 0)
throw new Exception("Maps::get_Item:\r\nIndex is out of range!”);
}由于在开始没有定义“无返回值”,所以一定要在后面加上 return 既是:
pu public IMap get_Item(int Index)
{
if (Index > m_array.Count || Index < 0)
throw new Exception("Maps::get_Item:\r\nIndex is out of range!”);
return m_array[Index] as IMap
}
}