15
Bubbles
5y

As I get deeper into this project the more I fucking LOVE C# 💜

Although I have been using core. I have VS installed but haven’t used the framework yet. Are there any differences I should know about and get used to?

Comments
  • 1
    What's so great about it? Asking cause I will probably need to learn it soon
  • 1
    C# doesnt have pointers. Ugh.
  • 7
    @Quirinus Actually, there are. But you need to wrap code that uses pointers in

    unsafe
    {

    }

    See: https://docs.microsoft.com/en-us/...
  • 0
    @filthyranter Okay, give me a function pointer.
  • 4
    @Quirinus Well, there's none. The very concept of function pointers was replaced by delegates in C#.
  • 5
    @Quirinus who needs function pointers if you have real higher order functions
  • 5
    The differences between core and full framework are mostly that they have been more strict and selective with core, avoiding porting things that they felt was not good design and full framework still has more 3:rd party nugets as its been around longer.

    But core it cross platform (one other reason many 3:rd part nugets won’t work) and in many cases faster.

    But just looking at some code you could probably not tell which is which unless you recognize some class or function you know only exists in one of them.
  • 2
  • 3
    @Voxera I’ve also seen cases where core is more secure as well, and Microsoft stated that they are slowly going to shift focus from full framework to Core. So eventually they will only focus on core
  • 0
    @filthyranter Yeah delegates are okay, except when you actually need function pointers, not delegates.
  • 1
    Well, theres other legitimate uses. I mean, I could do it without function pointers, but the code would be uglier.
Add Comment