C#
Getting the name of a property as a string
EDIT Everything below is completely unnecessary in C#6, just use the nameof operator So instead of using any of the shenanigans and hacks below, simply write SelectList list = new SelectList(items, nameof(Id), nameof(Text)); Simples. Original article below for C#5 and under... There are many times when