You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normative text in ECMA-335 6th edition subclause III.4.11 (ldflda - load field address) says this instruction throws System.InvalidOperationException if attempting to load the address of a field of an object in another application domain.
Informative text in II.14.4 (Pointer types) also mentions that.
I don't know. The warning itself is perhaps becoming obsolete, because .NET Core does not support remoting; it provides a MarshalByRefObject class for compatibility but you cannot get a transparent proxy that would cause a field access to throw the exception.
On the other hand, because ECMA-335 stipulates the type of the exception, it is not an implementation detail of .NET Framework and is unlikely to be ever changed, so there should be no problem with documenting it here too.
I'm not a native English speaker, but that's just wrong! And with the added cost of making translations also wrong.
Why do you think so? And what exactly is "added cost"? For one, "runtime" when used as adjective seems to be more popular then other variants in internet, software GUI captions, etc. (I could understand "run time" if it were used like "exception happens at run time"). For a second, in russian version of article, this phrase is translated pretty OK. Actually, "run time" might be harder for machine translating, because "run" has over 10 meanings that map into different russian words, but "runtime" has only two or so.
Activity
[-]What "a runtime exception will occur"?[/-][+]What "runtime exception will occur"?[/+]KalleOlaviNiemitalo commentedon Aug 22, 2019
Normative text in ECMA-335 6th edition subclause III.4.11 (ldflda - load field address) says this instruction throws System.InvalidOperationException if attempting to load the address of a field of an object in another application domain.
Informative text in II.14.4 (Pointer types) also mentions that.
paulomorgado commentedon Aug 22, 2019
Shouldn't this be added to the warning documentation, @KalleOlaviNiemitalo?
KalleOlaviNiemitalo commentedon Aug 22, 2019
I don't know. The warning itself is perhaps becoming obsolete, because .NET Core does not support remoting; it provides a MarshalByRefObject class for compatibility but you cannot get a transparent proxy that would cause a field access to throw the exception.
KalleOlaviNiemitalo commentedon Aug 27, 2019
On the other hand, because ECMA-335 stipulates the type of the exception, it is not an implementation detail of .NET Framework and is unlikely to be ever changed, so there should be no problem with documenting it here too.
BillWagner commentedon Sep 3, 2019
I'm fine adding the details of
InvalidOperationExceptionto this warning. I agree that it's unlikely to change.I've added this to our backlog, and added the "up for grabs" label, if someone wants to submit a PR.
paulomorgado commentedon Sep 4, 2019
This is the subject of other discussions, but here goes: is this a "runtime" error, a "run time" error or a "run-time" error?
MSDN-WhiteKnight commentedon Sep 4, 2019
Style Guide uses "runtime".
paulomorgado commentedon Sep 4, 2019
I'm not a native English speaker, but that's just wrong! And with the added cost of making translations also wrong.
mairaw commentedon Sep 4, 2019
Let's start a thread with the folks from the Microsoft style guide @paulomorgado.
MSDN-WhiteKnight commentedon Sep 5, 2019
Why do you think so? And what exactly is "added cost"? For one, "runtime" when used as adjective seems to be more popular then other variants in internet, software GUI captions, etc. (I could understand "run time" if it were used like "exception happens at run time"). For a second, in russian version of article, this phrase is translated pretty OK. Actually, "run time" might be harder for machine translating, because "run" has over 10 meanings that map into different russian words, but "runtime" has only two or so.
paulomorgado commentedon Sep 5, 2019