no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
C#
Async Lambda Statements
A couple of simple examples of using Lambda statements with async logic.
Nov 21, 2023
#
C#
,
Lambda
Many Ways to make and Deserialize an HTTP GET with HttpClient
There are so many ways to make and deserialize an HTTP GET request. In this post, I’ll show a few approaches.
Mar 16, 2023
#
C#
,
dotNet
,
HttpClient
,
Serialization
,
Deserialization
Unit Tests for Main and Other Methods in Top-Level Statements Console Applications
I spent some time attempting to find a way to execute unit tests on the Main and other methods within a console application using top-level statements, purely for the fun of it. It took longer than I had expected.
Jan 10, 2023
#
C#
,
dotNet
,
Top Level Statements
,
Unit Tests
,
Main Method
Creating an ASCII Table with C#
I was re-watching The Martian a few weeks ago. There is a scene Mark Watney needs an ASCII table, he rummages through the laptop of one of the crew to find one. This got me thinking that it should be very easy to create a table with a simple program.
Sep 30, 2022
#
C#
,
ASCII
Using a Stream Extension Method to Read Directly from a Stream into a String
I always forget how to read from a stream to a string, so I’ve create an extension method that does that and works with all stream types.
Jun 9, 2022
#
C#
,
Stream
,
StreamReader
,
Extension Method
C# Lambdas Part 2, a Few More Complicated Examples
Following on from a post earlier this month on lambdas, here are some examples that are a little more complicated.
May 22, 2022
#
C#
,
dotNet6
,
Lambda
,
Func
C# Lambdas Part 1, a Quick Overview with Examples
There are many ways to write and use lambdas in C# that. In this post I give an overview of what they are, examples of how to write them with detailed comments, and how to use them.
May 13, 2022
#
C#
,
dotNet6
,
Lambda
,
Func
,
Action
Priority Queues and Async Tasks
Priority queues are new to .NET 6. Here is a simple example using them to “schedule” async tasks.
Nov 24, 2021
#
dotNet
,
C#
,
async
,
Priority Queue
A Few Ways of Pattern Matching with C#
A follow up on an earlier post showing a few different ways to use pattern matching.
Nov 22, 2021
#
C#
,
dotNet
,
Pattern Matching
WhenAny with a List of Different Types of Task, Processing Each as They Finish
After some discussions on Twitter a few new ways of using WhenAny with Tasks of different types came up. Here is what I think will be my last post on this topic for a while, probably…
Nov 11, 2021
#
WhenAny
,
C#
,
dotNet
«
»
Cite
×