concept new in category sharePoint
appears as: new

This is an excerpt from Manning's book SharePoint 2010 Web Parts in Action.
button.Click += new EventHandler(button_Click);
public class FastCar { readonly IEngine _engine; public FastCar() { _engine = new FastEngine(); } public void Start() { while(_engine.GetSpeed() < 100) { _engine.IncreaseSpeed(); } } }
class ListsService { public IEnumerable<ListInfo> GetLists() { SPWeb web = SPContext.Current.Web; List<ListInfo> listInfo = new List<ListInfo>(); foreach (SPList list in web.Lists) { listInfo.Add(new ListInfo() { Title = list.Title, Url = list.DefaultViewUrl }); } return listInfo; } }