已定义了一个名为“this”的具有相同参数类型的成员错误
SAPBO 2010-07-04 06:33:57 谢谢各位
这个怎么修改啊。
public class ClsCostType
{
// Fields
private static string[] m_FtEnabled = new string[0x20];
private static string[] m_FtName = new string[0x20];
private static string[] m_MaEnabled = new string[12];
private static string[] m_MaName = new string[12];
private static bool m_NeedRefresh = true;
// Methods
private static void Refresh()
{
//例子
if (m_NeedRefresh)
{
m_NeedRefresh=m_NeedRefresh ;
}
}
// Properties
public static bool this[int Index]
{
get
{
Refresh();
return (m_FtEnabled[Index] == "Y");
}
}
public static string this[int Index]
{
get
{
Refresh();
return m_FtName[Index];
}
}
public static bool this[int Index]
{
get
{
Refresh();
return (m_MaEnabled[Index] == "Y");
}
}
public static string this[int Index]
{
get
{
Refresh();
return m_MaName[Index];
}
}
public static bool NeedRefresh
{
get
{
return m_NeedRefresh;
}
set
{
m_NeedRefresh = value;
}
}
}