Hello!
I'm following a simple tutorial for creating a Twitter feed reader.
It's really simple, and I'm stuck on one thing.
Apparently, when I'm creating
I get:
Identifier expected.
Invalid token ';' in class, struct, or interface member declaration
for the get; and set; methods. What am I doing wrong?
I'm following a simple tutorial for creating a Twitter feed reader.
It's really simple, and I'm stuck on one thing.
Apparently, when I'm creating
Code:
public class TwitterItem
{
public string UserName( get; set; );
public string Message( get; set; );
public string ImageSource( get; set; );
}
Identifier expected.
Invalid token ';' in class, struct, or interface member declaration
for the get; and set; methods. What am I doing wrong?
Comment