dotnet

bradwilson, (edited )
@bradwilson@mastodon.social avatar

This is super duper extra important.

C# Nullable Reference Types are a compile-time thing, not a runtime thing. "string?" and "string" are both just "string" at runtime.

This means:

  • Always guard against your users passing null even for types that shouldn't allow it, because it's not a runtime guarantee.

  • You can't create overloads that differ only on nullability (i.e., Method(string) vs. Method(string?)) because they're the same type at runtime.

agocke,
@agocke@hachyderm.io avatar

@tannergooding @khalidabuhakmeh @bradwilson yes. That was the core design of the previous feature. But I want the opposite.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@agocke @tannergooding @bradwilson If you want it, that’s all the reason we need. Ship it!

Turious,
@Turious@mastodon.social avatar

If I have a simple C# 4.8 application and I wanted to add a way to feed it instructions remotely, how would I do that? This will be a program running fullscreen that needs full control of the mouse/keyboard.

All API tutorials I can find either describe .NET Core or controller options I do not have available because this is a basic project.

andrewlock,
@andrewlock@hachyderm.io avatar

Blogged: Blocking primary constructor member capture using a Roslyn Analyzer

https://andrewlock.net/blocking-primary-constructor-member-capture-using-an-analyzer/

In this post I describe a Rosyln analyzer you can use to enforce that primary constructors are only used for initialization and never to capture as fields

andrewlock,
@andrewlock@hachyderm.io avatar

@khalidabuhakmeh THANK YOU 😂

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@andrewlock In retrospect, I wonder if having similar syntax to records but different semantics is a landmine waiting for folks to step on. 🤔

Guess it's too late now. C'est La Vie.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

It’s nice to know I live rent-free in the minds of folks, so much so that they felt the need to come by the BUILD booth to tell our JetBrains folks about me. 😅

Anyways, xoxo

jakecarpenter,
@jakecarpenter@hachyderm.io avatar

@khalidabuhakmeh it better have been support

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jakecarpenter Perhaps… it is annoying when you know someone is right. :P

meziantou,
@meziantou@hachyderm.io avatar
bradwilson,
@bradwilson@mastodon.social avatar

@meziantou Criminal, if only someone had told them how to fix this 😭😂

yoh,
@yoh@hachyderm.io avatar

A new article just dropped! ✨

This time I decided to go with the analysis based on the work initially made by @joaofbantunes. Be ready to see some assembly code generated by the JIT compiler, see some source code and finally find if strong typing means poor performance or not.

https://yoh.dev/weakly-and-strongly-typed-values-in-dotnet

pdebruin,
@pdebruin@hachyderm.io avatar

Less nano seconds and allocations just made me smile 🙂 at an video where @shanselman and @stephentoub geek out over improving of string operations in .NET libraries. YouTube video https://www.youtube.com/watch?v=TRFfTdzpk-M
If you like this highly technical content on .NET, check out their series https://www.youtube.com/watch?v=R-z2Hv-7nxk&list=PLdo4fOcmZ0oX8eqDkSw4hH9cSehrGgdr1

maartenballiauw,
@maartenballiauw@mastodon.online avatar

We’re hosting the .NET Days Online again, and are looking for great sessions!

If you’re available on September 25 or 26, and have a topic you’d like to present on, check out our Call for Speakers 👉
https://blog.jetbrains.com/dotnet/2024/05/02/jetbrains-dotnet-days-online-2024/?utm_medium=social&utm_source=mastodon&utm_campaign=jetbrains-dotnet-days-online-2024

xunit,
@xunit@dotnet.social avatar

We just shipped v2 Core Framework 2.8.1, Analyzers 1.14.0, and Visual Studio adapter 2.8.1.

Release notes:

https://xunit.net/releases/v2/2.8.1
https://xunit.net/releases/analyzers/1.14.0
https://xunit.net/releases/visualstudio/2.8.1

bradwilson,
@bradwilson@mastodon.social avatar

Anybody know when we get the 4.10 NuGet packages (like Microsoft.CodeAnalysis)?

I'm assuming they're going to follow the "even" pattern and declare 17.10 as LTSC, which means I will want to officially support Roslyn 4.10. Both of these pages are currently out of date:

https://learn.microsoft.com/en-us/visualstudio/productinfo/vs-servicing

https://learn.microsoft.com/en-us/visualstudio/extensibility/roslyn-version-support?view=vs-2022

khalidabuhakmeh, (edited )
@khalidabuhakmeh@mastodon.social avatar

@bradwilson They are available in prerelease right now. I just added them to a local language server.

bradwilson,
@bradwilson@mastodon.social avatar

@khalidabuhakmeh I know, but I'm not shipping @xunit analyzers linked against a pre-release library.

xoofx,
@xoofx@mastodon.social avatar

I'm sold on building my .NET NativeAOT Vulkan prototype on top of wlroots https://gitlab.freedesktop.org/wlroots/wlroots instead of going raw with DRM/KMS. Any folks that experienced wlroots?

Gonna have to create a binding for this one though, before I can start anything, but that will be hopefully a lot less work than dealing directly with DRM/KMS 😅

xoofx,
@xoofx@mastodon.social avatar

Just updated my Vulkan bindings https://github.com/XenoAtom/XenoAtom.Interop/tree/main/src/vulkan

I have used the vk.xml registry & parsed the man docs to generate a complete Vulkan API with intellisense! 🚀

I took also the opportunity to add overloads in/out parameters, ReadOnlySpan/Spans and make optional params with default value. Lots of codegen, but that was worth it 😎

The vulkan_core.generated.cs is over 90,000 lines of C# code 🙈

Next step: Bare metal Vulkan C# NativeAOT on top of the Linux kernel + libdrm 😱

joaofbantunes,
@joaofbantunes@mastodon.social avatar

I'm such an idiot 🤦‍♂️
For years installing SDKs manually when dnvm is a thing. So much better!

cincura_net,
@cincura_net@mas.to avatar

Blogged: Entity Framework Core 8 provider for Firebird is ready

https://www.tabsoverspaces.com/id/233940

cwoodruff,
@cwoodruff@mastodon.social avatar
cincura_net,
@cincura_net@mas.to avatar
gregsdennis,
@gregsdennis@dotnet.social avatar

Just a reminder that if you'd like to promote continued development of JSON tech like and others in , please consider sponsoring the .

https://github.com/sponsors/gregsdennis
https://github.com/gregsdennis/json-everything

Also goes for any project.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • ethstaker
  • thenastyranch
  • GTA5RPClips
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • cisconetworking
  • kavyap
  • JUstTest
  • normalnudes
  • modclub
  • cubers
  • ngwrru68w68
  • khanakhh
  • tacticalgear
  • tester
  • provamag3
  • Leos
  • osvaldo12
  • anitta
  • megavids
  • lostlight
  • All magazines