bitScry

  • Home
  • About
  • Blog
  • Contact

List

About this site

This is a blog to help me remember some of the coding challenges I’ve faced and hopefully help others out if they’re suffering the same problems.

Recent Posts
  • Serving Images from Blob Storage in an Azure Function
  • Redis Caching in .NET
  • Passing Environment Variables From Docker to .NET Web App
  • Retrieving Data from MySQL Stored Procedures in .NET
  • Excluding Child Properties from a List of Objects in Fluent Assertions
Tag Cloud

.NET .NET Core AAD API ASP.NET Core Authentication Authorization Azure Azure Active Directory Azure Function Azure Storage Blob Bootstrap C# Cloud Storage Console Application CSS DataTable Dependency Injection Dictionary Entity Framework Enum Extension Google HTML Image IP Address JavaScript jQuery JSON List MVC MVC 6 Newtonsoft RestSharp Serilog SQL Stored Procedure Stream Table Table Storage Test Web App Web Application WordPress

Programming

Excluding Child Properties from a List of Objects in Fluent Assertions

We’re currently using Fluent Assertions to help make writing tests for our project a bit easier. This is a very handy library and certainly helps to make test conditions easier to specify and more readable. One issue we did have though was how to exclude specific child properties from a Read more…

By Shinigami, 7 months ago
Programming

Check if a Value is Present in Multiple Lists

If you have 2 (or more) lists in C# and you want to check if they have 1 or more values in common then you can use the following LINQ to check.

By Shinigami, 3 years14 July 2020 ago
Programming

Serializing/Deserializing XML Attribute Lists

I’ve gotten so used to working with JSON that I’d almost forgotten what a chore it can be to work with XML. A case in point is the below XML sample that I’m trying to deserialize into a class, essentially I want to capture all the attributes of the “Attribute” Read more…

By Shinigami, 6 years21 November 2017 ago
Programming

Reading Lists from appsettings.json

I’ve been using the SendGrid API for a project and I was trying to be lazy and read multiple email addresses to send to from a single parameter in appsettings.json with the email addresses separated by a semicolon. Strangely this only sends to the first email in the string so Read more…

By Shinigami, 6 years14 November 2017 ago
Programming

List Shuffling

This is just a simple extension for lists to enable the shuffling of items within it based on the StackOverflow answer here. This relies on System.Random so isn’t as random as it could be but is fine for my purposes.

By Shinigami, 6 years6 November 2017 ago
Uncategorised

Splitting Lists Into Chunks

Whilst writing a process to upload instore purchases to Facebook using their offline conversion API I discovered that their API only accepts a maximum of 2,100 events in any one API call. As I already ahd a nice list of events I had a look around and managed to find Read more…

By Shinigami, 6 years8 September 2017 ago
Programming

Comparing List Objects

I have a list of EventType objects with the following definition. These are used in a web application where the properties can be adjusted and the resulting list is posted back to the controller action. Rather than updating all the objects returned (even the non-modified ones) I wanted to extract Read more…

By Shinigami, 6 years4 August 2017 ago
  • Facebook
  • Twitter
  • Instagram
  • Email
Hestia | Developed by ThemeIsle