Skip to contentSkip to author details


A 1-post collection

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…