question

SougataGhosh-7881 avatar image
0 Votes"
SougataGhosh-7881 asked SougataGhosh-7881 commented

ReadOnly STructure Instance

This question is actually a follow-up of a previous question (assigning-values-toproperties-in-structures.html). In the answer provided by @XingyuZhao-MSFT he had referred to an article (mutating-readonly-structs). In the article there is a statement which defines how to resolve

"E.I" where E is an object and I is a field......if the field is readonly and the reference occurs outside an instance constructor of the class in which the field is declared, then the result is a value, namely the value of the field I in the object referenced by E.

My question is, is there any article which defines the rules of behaviour in various cases...for example when the structure instance is not readonly but the memebers are OR vice versa?


dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SimpleSamples avatar image
0 Votes"
SimpleSamples answered SougataGhosh-7881 commented

If you can be specific about a problem you need to solve then you are likely to get a specific answer.

The Visual Basic Language Specification (for version 11.0) will have the most complete and accurate answer. It is also the most technical; it is written for use by developers of the compiler.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi...I agree the question is not clear enough. I shall repost the question and hence closing this thread.

0 Votes 0 ·