using System;
namespace CardV5
{
class Tee
{
private static int numOne = 4;
private static int numTwo = 2;
private static int numThree = 22;
public int Value { get; set; }
private int[, ,] m_tData = new int[numOne, numTwo, numThree];
public int TeeData(int IndexOne, int IndexTwo, int IndexThree)
{
get{return m_tData[IndexOne, IndexTwo, IndexThree];}
set{m_tData[IndexOne, IndexTwo, IndexThree] = Value;}
}
}
}
获取和设置是红线。错误标志:
只有赋值、调用、递增、递减、等待和新对象表达式可以用作语句。
如何解决这个问题?