Skip to contentSkip to author details


A 10-post collection

Written by Michael Earls    

Update: Added reference links at bottom of entry. I was working with some code today and needed to see if a list of custom DTOs contained an object based on a string value I had. Here is my solution. Some background… Our Architecture uses a base abstract class called DtoBase:…  

Written by Michael Earls    

Update: It seems I could have simply used StringSplitOptions.RemoveEmptyEntries: userFunctions.AccessoryGroups = reader["AccessoryGroups"].ToString().Trim().Split(new[] { "|" }, StringSplitOptions.RemoveEmptyEntries).ToList(); to reduce it to a single line of code. I was writing some code the other day and I had the feeling that there was an easier way to…