public IEnumerable <AlbumDto> ConvertInAlbumDtoList(IEnumerable <Wall> walls) { List <AlbumDto> albums = new List <AlbumDto>(); AjaxMinExtensions.ForEach(walls, w => albums.Add(GetAlbumDto(w))); return(albums); }
public ActionResult ClassProperty() { var cell = new MyClassA(); var result = new StringBuilder(); var properties = cell.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); AjaxMinExtensions.ForEach(properties, prop => { result.Append("<br />"); result.Append($"{prop.Name} {prop.PropertyType} {prop.GetType().IsClass}"); result.Append("<br />"); result.Append($"{prop.PropertyType}"); result.Append("<br />"); result.Append($"{prop.PropertyType.HasElementType}"); result.Append("<br />"); result.Append($"{prop.PropertyType.IsClass}"); }); return(Content($"{result.ToString()}")); }