Replies: 7 comments
-
you can already (and have always been able to) do this with partial classes - absolutely nothing stopping you |
Beta Was this translation helpful? Give feedback.
-
yepp partial classes are here just for that :) |
Beta Was this translation helpful? Give feedback.
-
oh, also possible duplicate of #83 |
Beta Was this translation helpful? Give feedback.
-
You can split up .net code into multiple files, and these files will get compiled when you build a project. In any language, not just those with the concept of partial classes. |
Beta Was this translation helpful? Give feedback.
-
Yes, that was what I mean. I was talking about nested files by default or at least having the option to make that happens. I just used the wrong word. Thanks for the comments guys. |
Beta Was this translation helpful? Give feedback.
-
@luismts the right place for a request for nested C# files is https://github.com/dotnet/csharplang . |
Beta Was this translation helpful? Give feedback.
-
This is a tooling request, not a language request. File at https://github.com/dotnet/roslyn instead. |
Beta Was this translation helpful? Give feedback.
-
Summary (edited)
Now that we are seeing some c# approaches, I think that is time for the nested c# files with partial classes.
->MyView.cs
-->MyView.logic.cs
Just to split the UI and the UI logic. A lot of people would love that.
Difficulty: Low
Beta Was this translation helpful? Give feedback.
All reactions