Say I have an entity that looks something like this simple example:
MyEntity { int property1; int property2; int property3; }
Now ass
In addition to Darrelk and mkedobbs, VB.NET Code:
object.list = object.list.Select(Function(x) x.property = If(x.property.Length > 3, x.property.Substring(0, 3), x.property) Return x End Function).ToList()