views:

50

answers:

0

I'm following along with the tutorial. And we are currently coding the Item class. I am using the 2008 edition, while the tutorial uses 2005. The code I am having issue with is:

public string Weight
{
 get { return weight; }
 set { weight = value; }
}

earlier in the code, we had:

private int Weight = 1;

as you can see, they are both different variables, int, and string. I'm doing exactly as the tutorial shows, on mine, I get a conversion error, whereas in the tutorial, there are no errors, why is this? I'm doing exactly what the video shows.

Edit: I am using the XNA 101 DVDs