In C#, why doesn't field initializer syntax not throw compilation errors, however, method calls do? For example,
class SomeOtherClass {
void SomeMethod() { }
}
class SomeClass {
SomeOtherClass someOtherObject = new SomeOtherClass();
someOtherObject.SomeMethod();
}
Why does the someOtherObject initialization, which essentially is a constructor call work? My understanding is that a constructor is also a method. However the second line, where there is a method call, does not work. Is this a language design choice?