I have a set of objects representing a folder structure.
I would like to set the FileExtension property to null if it is a folder.
This is, as far as I know. Can anyone help?
var items = MyClass.All().ToList(); items.ForEach(x => x.FileExtension = string.empty) .Where(y => y.FileExtension == "folder") .ToList();
Frank
source share