Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Decorate automatically implemented properties with CompilerGenerated attribute #736
Decorate automatically implemented properties with CompilerGenerated attribute
The C# en F# compiler differ in their CIL bytecode ouput of automatically implemented properties.
First, the C# compiler uses a backing field
Second, and this is what this feature request is about: the C# decorates both the
This means both
Currently, the F# compiler doesn’t.
I propose that the F# compiler also decorates both the
Pros and Cons
The advantage of making this adjustment to the F# compiler is to make the F# compiler behave like the C# compiler in this regard.
Realm (.NET) is a project where the appearance of a
The only disadvantage of making this adjustment to the F# compiler that I can think of, is that the CIL output is a few bytes larger.
Estimated cost (XS, S, M, L, XL, XXL): S
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
This is not even a change to the F# language design; but a change to the F# compiler.