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
Allow Object expressions to have attributes applied to them [6108807]
Submitted by Dave Thomas on 6/27/2014 12:00:00 AM 4 votes on UserVoice prior to migration
In the simplest case something like this would be possible:
[]
let makeResource name =
{ new System.IDisposable
with member this.Dispose() = printfn "%s disposed" name }
And then when the code is compiled the expression thats generated would also have the attribute applied to it.
This would interoperability with frameworks that use declarative attributes which would otherwise require adding a full type
Allow Object expressions to have attributes applied to them [6108807]
Submitted by Dave Thomas on 6/27/2014 12:00:00 AM
4 votes on UserVoice prior to migration
In the simplest case something like this would be possible:
[]
let makeResource name =
{ new System.IDisposable
with member this.Dispose() = printfn "%s disposed" name }
And then when the code is compiled the expression thats generated would also have the attribute applied to it.
This would interoperability with frameworks that use declarative attributes which would otherwise require adding a full type
Original UserVoice Submission
Archived Uservoice Comments
The text was updated successfully, but these errors were encountered: