Skip to content

Tag Archives: lambda

Stretching Lambda’s Legs: Single Statement String Concatenation

28-May-09

Ok, so I wanted to name the title of this post “Simple One Line String Concatenation with Lambda“, but that didn’t happen when I found a few holes in my approach if you wish to omit your concatenation string from being shown at the end (most cases, like with comma-delimited lists). So, I have offered [...]

Sweet lambda trick to append to MVC SelectList()

09-Jan-09

Hey Ya’ll, Well I was thinking of an ill-tricky way to append a string to the beginning of each list item in ASP.NET MVC’s SelectList collection, after thinking: new SelectList(ViewData.Model.Formats.ForEach(x => x.Name = index + ” – ” + x.Name), “ID”, “Name”); pausing (doh! – and not to mention not knowing how I would have [...]

My name is Graham O'Neale and I'm a software architect from Gold Coast, Australia. I am an overtime thinker, full time coder and awake part time in the real world. I have a keen interest in software development, particularly in the realm of programming (C#, ASP.NET, ASP.NET MVC, LINQ (2 SQL), Entity Framework, Silverlight, Blend, WCF, WPF) and a keen interest in the cutting edge and innovation. I have a new found love for design patterns, ALT.NET practices and well crafted software architecture. The purpose of this blog is to express any thoughts, findings, tips and gripes along my travels in the wonderful world of coding and technology...