Programming: .NET Framework
The old, well-loved, well-worn Windows-only version of .NET
Posted At: 9/8/2022 12:15:12 PM
Posted By: Comfortably Anonymous
Viewed: 5509 times
Likes: 0 Dislikes: 0
Had some big JSON returned from a Web API project I was developing, Swagger was taking FOREVER (More than 20 minutes!) to display the returned data.<br/>So I got looking into what I could do to increase the speed. Found some good settings that massively improve the rendering speed. The main fix is to…
Posted At: 1/26/2022 10:48:50 AM
Posted By: Comfortably Anonymous
Viewed: 2173 times
Likes: 0 Dislikes: 0
There are many reasons you may need to know/use/track the IP that an incoming request came from. Turns out it's not too hard, but a little sloppy, would think there's a better way to get it than inspecting server variables by name, but here we are.<br/>First off, there are two places it can appear, so…
Posted At: 12/1/2021 3:59:39 PM
Posted By: Comfortably Anonymous
Viewed: 2282 times
Likes: 0 Dislikes: 0
Need to upgrade legacy .NET Framework apps to .NET Core? This article goes over the big changes between the old and the new along with examples of commonly encountered issues and ways to mitigate them. Also a link to an entire free eBook ( Porting existing ASP.NET Apps to .NET Core ) [PDF] as…
Posted At: 10/25/2021 12:42:47 PM
Posted By: Comfortably Anonymous
Viewed: 1838 times
Likes: 0 Dislikes: 0
Developing containerized microservice applications means you are building multi-container applications. However, a multi-container application could also be simpler—for example, a three-tier application—and might not be built using a microservice architecture.<br/>Designing and Developing Multi…
Posted At: 9/20/2021 10:30:48 AM
Posted By: Comfortably Anonymous
Viewed: 2391 times
Likes: 0 Dislikes: 0
Beginner's Series to: Blazor | Channel 9 (msdn.com)
Posted At: 8/31/2021 12:12:53 AM
Posted By: Comfortably Anonymous
Viewed: 2142 times
Likes: 0 Dislikes: 0
Cool, this is an awesome feature! However, I've been using "real' visual studio for almost 20 years. And really struggling with the lack of anything visual with it. I keep trying to understand what people mean when they say it's not an ide. I'm sorta old. I grew up in the dos days. [Technically C64…
Posted At: 7/9/2021 11:11:52 AM
Posted By: Comfortably Anonymous
Viewed: 2131 times
Likes: 0 Dislikes: 0
Why something like this isn't built into .NET, I have no idea. But several places I've worked at have had variations on this to make development easier. So here's my implementation of it:<br/>using System.Collections.Generic; using System.Linq; namespace [ProjectName].ExtensionMethods { public static…
Posted At: 4/7/2021 5:13:58 PM
Posted By: Comfortably Anonymous
Viewed: 2654 times
Likes: 0 Dislikes: 0
So SQL Server Management Studio has a Dark Theme included. But it's still not fully endorsed by Microsoft, so it's weirdly hidden.<br/>The following PowerShell script will unlock the Dark Theme in SSMS 18.x. (Make sure and run PowerShell as an Administrator, or this won't work.)<br/>powershell -Command…
Posted At: 3/28/2021 1:39:29 AM
Posted By: Comfortably Anonymous
Viewed: 3052 times
Likes: 0 Dislikes: 0
Rock, Paper, Scissors, Lizard, Spockis the geek version of the classic Rock, Paper, Scissors game. Rock, Paper, Scissors, Lizard, Spock is created by Sam Kass and Karen Bryla.<br/>The Rock, Paper, Scissors, Lizard, Spock - Sample Application shows a multilanguage application built with Visual Studio…
Posted At: 4/7/2020 3:33:05 PM
Posted By: Comfortably Anonymous
Viewed: 2556 times
Likes: 0 Dislikes: 0
JSON has a weird text format. Here's how to easily convert to it from a C# DateTime:<br/>public string GetJSONFromUserDateTime(DateTime dt) { dt = dt.ToUniversalTime();string jsonDateTime = string.Empty; if (dt != null) { JsonSerializerSettings microsoftDateFormatSettings = new JsonSerializerSettings {…