The message is quite clear: you just cannot do it. This feature generally prevents you from initialization of the field with something which might not be yet ready. In your case,
SplitInLine
is the instance method. It means that it has access to the instance through the (implicit) method parameter "this". Through "this" reference, you can access all other instant members. But how would you know if some other instance you use in this method is already initialized? This is not always possible. Imaging the case when two fields tried to use each other.
So, instead, you should do something like this:
class MyClass {
internal MyClass() {
remotersInLine = SplitInLine(txtRem.Text);
}
string SplitInLine(string forSplit) {}
string remotersInLine;
}
Can you see the point now?
—SA