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
Extension Method
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
Parameterized SQL WHERE IN clause C#
If you are using some legacy SQL in C# you’ll occasionally need to write a WHERE IN. You don’t want to end up writing something like the below, either directly or through some sort of loop.
Jan 28, 2016
#
Extension Method
,
Parameters
,
SQL
,
WHERE IN
,
C#
Cite
×