• About
  • Privacy Policy
  • Utilities
Darchuk.NET

Allowing trailing JSON commas in ASP.NET Core 3

February 14, 2020 by Robert Leave a Comment

Trailing commas in JSON are not spec compliant in the ASP.NET Core 3 JSON serializer. Find out how to turn them on by default in your ASP.NET Core 3 web app.

Posted in: .NET Core, ASP.NET, C#, JavaScript, Web Development Tagged: .NET Core 3, ASP.NET Core, Json, Serialization

YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha

October 25, 2019 by Robert Leave a Comment

Previously I wrote about several “gotchas” in the new JSON serializer that is built in to .NET Core 3.0.  Another one has cropped up, but it is different enough that I thought it warranted its own post. Type Promiscuity via GIPHY Back in 2010 or something like that, Ted Neward gave a talk about JavaScript … [Read more…]

Posted in: .NET Core, Angular, ASP.NET, C#, JavaScript, Typescript, Web Development Tagged: .NET Core 3, ASP.NET Core, C#, DotNetCore, JavaScript, Typescript

Logging in a .NET Core 3 SignalR client

October 18, 2019 by Robert Leave a Comment

SignalR is part of the .NET Core framework that allows for real-time communication between a server and any number of clients.  The traditional example is a JavaScript client that can receive updates directly from a web server asynchronously, but you can also connect to a SignalR hub with a C# client. via GIPHY HubConnectionBuilder To … [Read more…]

Posted in: .NET Core, ASP.NET, C#, SignalR, Web Development Tagged: C#, Csharp, DotNetCore, DotNetCore3, SignalR

.NET Core 3 unit testing project sdk

October 11, 2019 by Robert 6 Comments

I was following the new .NET Core 2.2 –> 3.0 upgrade document, but when I updated my unit test project files, I accidentally set the SDK to  Microsoft.NET.Sdk.Web because that’s what my ASP.NET Core 3.0 web project was. via GIPHY The unit tests still ran and worked… for the most part.  One of them failed, … [Read more…]

Posted in: .NET Core, C#, Debugging, Unit Testing Tagged: .NET Core, .NET Core 3, C#, Debugging, unit testing

.NET Core 3.0 Upgrade–New JSON Serializer Gotchas

October 4, 2019 by Robert 1 Comment

With the release of .NET Core 3.0, everyone needs to start thinking about upgrading their existing .NET Core 2.2 apps right away.  Not only because .NET Core 3.0 has a bunch of performance gains that you’ll undoubtedly want to take advantage of, but also because support for .NET Core 2.2 ends mid December.  Microsoft’s new, … [Read more…]

Posted in: .NET Core, C#, Web Development Tagged: .NET Core, Json, Serializer, Upgrade

Reginald

September 3, 2019 by Robert 5 Comments

This past weekend I had to say goodbye to my cat, Reginald.  He was an amazing cat, and it was the hardest thing I’ve ever had to do.  I wanted to take a break from writing technical stuff to have a dedicated piece of the Internet to my boy. After getting engaged, my bride-to-be Jennifer … [Read more…]

Posted in: Love Tagged: Cats, Love

Unit Testing Common Logging with Moq

August 30, 2019 by Robert Leave a Comment

Sometimes there’s a path in a service or application that you want to test where all it does is log something and return.  You could check other things, but sometimes it is hard to check to see if something didn’t happen… and it would be a lot easier to know if something did happen, like … [Read more…]

Posted in: .NET Core, C#, Unit Testing Tagged: .NET Core, C#, Moq, Testing, unit testing

BitConverter–How to deal with bytes!

August 16, 2019 by Robert Leave a Comment

When you’re writing an API that deals with a TCP client, you need to talk data in terms of byte arrays. via GIPHY BitConverter BitConverter is a class in the System namespace that lets you convert numerical data types (and single chars) to and from their byte[] counterparts. In order to convert to a byte[], … [Read more…]

Posted in: .NET Core, C# Tagged: BitConverter, Bitwise, byte, C#

Unit Testing bit fields

August 9, 2019 by Robert Leave a Comment

Last week I wrote about bit fields and how they can be used to easily track boolean values.  Unit testing is pretty important to me, because I make mistakes a lot.  By writing tests, I can have a little bit of confidence in the code that I wrote. via GIPHY Bit Fields Knowing how bit … [Read more…]

Posted in: .NET Core, C#, Unit Testing Tagged: Bitwise, Csharp, enum, Flags, Testing

Bit Flags

August 2, 2019 by Robert 1 Comment

Bit flags aren’t probably something that you think about in traditional/modern software development.  You might if you are in the IoT space, but if you have the pleasure of a ton of RAM, you probably aren’t super concerned with saving space.  However, recently I’ve been thinking a lot about network communication and how to minimize … [Read more…]

Posted in: .NET Core, C#, Web Development Tagged: Bitwise, C#, enum, Flags, Networking
1 2 … 12 Next »

Recent Posts

  • Allowing trailing JSON commas in ASP.NET Core 3
  • YADNC3JSG–Yet Another .NET Core 3.0 JSON Serializer Gotcha
  • Logging in a .NET Core 3 SignalR client
  • .NET Core 3 unit testing project sdk
  • .NET Core 3.0 Upgrade–New JSON Serializer Gotchas

Recent Comments

  1. Robert on C# Setting Socket Keep-Alive
  2. Oliver Schramm on C# Setting Socket Keep-Alive
  3. John Anderson on Waiting for a keypress asynchronously in a C# console app
  4. Ronald Garlit on .NET Core 3 unit testing project sdk
  5. Ronald Garlit on .NET Core 3 unit testing project sdk

Copyright © 2025 Darchuk.NET.

Omega WordPress Theme by ThemeHall