C Sharp

!csharp

@programming.dev
Create post
JetBrains .NET Days Online 2024

JetBrains .NET Days Online 2024

Open link in next tab

JetBrains .NET Days Online 2024

https://lp.jetbrains.com/dotnet-days-2024/

Join us on September 25–26 for a free virtual event bringing together the most influential people in the .NET space to talk about topics they’re passionate about, including C#, F#, .NET Aspire, Blazor, HTMX, microservices, ReSharper, and more!

JetBrains .NET Days Online 2024
Deep .NET: Let's Talk Parallel Programming with Stephen Toub and Scott Hanselman

Deep .NET: Let's Talk Parallel Programming with Stephen Toub and Scott Hanselman

Open link in next tab

- YouTube

https://www.youtube.com/watch?v=18w4QOWGJso

Auf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.

.NET Digest #3

.NET Digest #3

Open link in next tab

.NET Digest #3

https://pvs-studio.com/en/blog/posts/csharp/1158/

Welcome to our third news and event digest for the .NET world! The PVS-Studio team is thrilled to bring you the most interesting and useful insights. Let′s roll!

Performance Improvements in .NET 9 - .NET Blog

Performance Improvements in .NET 9 - .NET Blog

Open link in next tab

Performance Improvements in .NET 9 - .NET Blog

https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-9/

Take an in-depth tour through hundreds of performance improvements in .NET 9.

Unity Hiring: Senior .NET Runtime Developer @ Canonsburg, PA, USA

Unity Hiring: Senior .NET Runtime Developer @ Canonsburg, PA, USA

Open link in next tab

Unity Hiring: Senior .NET Runtime Developer @ Canonsburg, PA, USA

https://careers.unity.com/position/5967481

The oportunity: Unity Engine is used by millions of creators around the world to build powerful and engaging real-time experiences. Underlying these experiences is game code written in C# and targeting .NET.

A proposal for type unions (aka discriminated unions) in C#

A proposal for type unions (aka discriminated unions) in C#

Open link in next tab

csharplang/proposals/TypeUnions.md at main · dotnet/csharplang

https://github.com/dotnet/csharplang/blob/main/proposals/TypeUnions.md

The official repo for the design of the C# programming language - dotnet/csharplang

Question regarding generic type and Type

Question regarding generic type and Type

Let's say I have a method that I want to make generic, and so far it had a big switch case of types.

For an simplified example,

switch (field.GetType()) {
case Type.Int: Method((int)x)...
case Type.NullInt: Method((int?)x)...
case Type.Long: Method((long)x)...

I'd like to be able to just call my GenericMethod<T>(field) instead and I'm wondering if this is possible and how would I go around doing it.

GenericMethod(field)

public void GenericMethod<T>(T field)

Can I use reflection to get a type and the pass it into the generic method somehow, is it possible to transform Type into <T>?

Can I have a method on the field object that will somehow give me a <T> type for use in my generic method?

Sorry for a confusing question, I'm not really sure how to phrase it correctly, but basically I want to get rid of switch cases and lots of manual coding when all I need is just the type (but that type can't be passed as generic from parent class)

The happy state of property-based testing in C#

The happy state of property-based testing in C#

Open link in next tab

The happy state of property-based testing in C# · Anthony Lloyd

http://anthonylloyd.github.io/blog/2024/07/07/cscheck-happy-state

The happy state of property based testing in C#