Just said:
I was trying to initialize the variable using this at class level, this was
not permittet, so I initialised it in the constructor. cheers
This post lacks a measure of context, so I'm scratching my head about what
variable, using what idiom, in what constructor, and why it was wrong before,
and what it looks like now, correct. Perhaps if you'd send it as a reply to
whatever presumed earlier post is the antecedent?
The C# newsgroups get a lot of traffic, and it is difficult browsing them to
discern what unrelated threads might have a connection between them without
some repetition of context. Certainly a headline of "fixed" does nothing to
connect the post to the thread describing the original matter, again,
presuming such a thread to exist.