Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Check out new C# 12 preview features!

Check out new C# 12 preview features!

Scheduled Pinned Locked Moved The Insider News
csharplinqcomfunctional
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    .NET blog[^]:

    We’re excited to preview three new features for C# 12: Primary constructors for non-record classes and structs, Using aliases for any type, Default values for lambda expression parameters

    Looking forward to the confusion that aliasing will cause.

    M N M 3 Replies Last reply
    0
    • K Kent Sharkey

      .NET blog[^]:

      We’re excited to preview three new features for C# 12: Primary constructors for non-record classes and structs, Using aliases for any type, Default values for lambda expression parameters

      Looking forward to the confusion that aliasing will cause.

      M Offline
      M Offline
      MarkTJohnson
      wrote on last edited by
      #2

      using AngelHair = Spaghetti;

      I’ve given up trying to be calm. However, I am open to feeling slightly less agitated. I’m begging you for the benefit of everyone, don’t be STUPID.

      1 Reply Last reply
      0
      • K Kent Sharkey

        .NET blog[^]:

        We’re excited to preview three new features for C# 12: Primary constructors for non-record classes and structs, Using aliases for any type, Default values for lambda expression parameters

        Looking forward to the confusion that aliasing will cause.

        N Offline
        N Offline
        Nelek
        wrote on last edited by
        #3

        Kent Sharkey wrote:

        Looking forward to the confusion that aliasing will cause.

        GIT of the Preview:

        You can allow aliases to propagate outside a compilation unit by making them global

        That's going to be either lots of fun, or lots of tears, or (most probably) lots of 🤬🤬🤬🤬🤬🤬🤬🤬

        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

        1 Reply Last reply
        0
        • K Kent Sharkey

          .NET blog[^]:

          We’re excited to preview three new features for C# 12: Primary constructors for non-record classes and structs, Using aliases for any type, Default values for lambda expression parameters

          Looking forward to the confusion that aliasing will cause.

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          C# 12? What happened to 9-11? I think I'm using C# 8 with .NET 7, but since the build UI now tells me I can't select the language version, I might as well be using C# from an alternate universe. And isn't the language version somehow tied to the version of Visual Studio, and the update du jour? I guess wikipedia might help explain the mixing and matching of framework, compiler, and IDE that governs the language version. :laugh:

          Latest Articles:
          A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups