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
atm, dotnet reference types constructor just show unit unit if they have an empty constructor, but that is not useful as the developer many time, even for poco objects, wants to see the public properties names, and be suggested with them on how to fill in a common .NET object coming from a nugget library or a C# project.
// empty constructor is currently returned in suggestions from autocomplete for C# Poco classes
() -> ()
is not a useful signature for the developer, because he can also use the object constructor (curly constructor from C#) in F# using parentheses and specifying named arguments
// common C# POCOpublicclassSomeThing{publicstringPropertyOne{get;set;}}
// actual "poco" initializer the dev is interested into and to see in docsnew SomeThing(
PropertyOne="A")
Checklist
I have looked through existing issues to make sure that this feature has not been requested before
I have provided a descriptive title for this issue
I am aware that even valid feature requests may be rejected if they do not align with the project's goals
I or my company would be willing to contribute this feature
The text was updated successfully, but these errors were encountered:
Sounds reasonable! Let me make sure I understand the request:
When triggering completion in a constructor, if at the end of the constructor parameter list, users should see any settable properties (in C# terms this is set or init properties) in the completion list
Yes indeed, I just find it sometimes painful to work with c# poco objects initialiser from F#, it works but syntax is not clear , not well documented and not suggested by the autocomplete/inline-docs. So I think this can help many beginners , maybe I would also mention that curls in C# are replaced by normal
Parents in F#? Or maybe a custom computation expression working only with POCOS like
typeMyPoco()=member valthis.Test=""with get,set
// only unit -> unit is suggested here, not to fill in with Test property which has a public setter..letx=new MyPoco()
Would make it even closer to C# for pocos and easier to bridge the gap?
Details
atm, dotnet reference types constructor just show unit unit if they have an empty constructor, but that is not useful as the developer many time, even for poco objects, wants to see the public properties names, and be suggested with them on how to fill in a common .NET object coming from a nugget library or a C# project.
is not a useful signature for the developer, because he can also use the object constructor (curly constructor from C#) in F# using parentheses and specifying named arguments
Checklist
The text was updated successfully, but these errors were encountered: