I've got a list of object of this class
public MyClass{
string code;
string other;
string other2;
}
i want to replace all char in code property with a custom char Ex: 'X' ,except last 4 chars, and return the modified list. Possible using linq or not a lot of lines of code?
List<MyClass> classes = new List<MyClass>();
classes = //something that populate the list
classes.Select( e => ???? )
return classes; // returning the modified list