Reputation: 11
Upvotes: 0
Views: 41
Reputation: 23174
In C#,
xxx. = yyy;
is not valid.
it would make sense if you have :
xxx.aaa = yyy;
so the compiler tells you "I'm expecting some name after the dot, like aaa". This name is called an indentifier, hence the error you get.
This would mean : set the property/field named aaa
of xxx
with the value of yyy
I think you can simply remove the dot.
xxx = yyy;
(set the value of xxx as yyy)
Upvotes: 1