Random randgen = new Random();
int dkey;
public object SetScore(int val)
{
dkey=randgen.Next(int.MaxValue/2);
return val ^ dkey; //^ means XOR.
}
public string GetScore(int val)
{
return val ^ dkey;
GC.Collect();
}
从public string GetScore(int val)
{
return val ^ dkey;
GC.Collect();
}
显示return val ^ dkey
错误
无法将类型“int”隐式转换为“string”