JK!!
Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD' ?"
JK!!
Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD' ?"
# script --timing=time.txt script.log # scriptreplay -m 1 --timing=time.txt script.logTry it, its fun!! First run the script command and hack around with whatever random commands come to mind. When you're ready, type
# exit
scriptreplaycommand.
Route route = new Route("students", new StudentsRouteHandler());
RouteTable.Routes.Add(route);
public class StudentsRouteHandler : IRouteHandler, IHttpHandler {
public IHttpHandler GetHttpHandler(RequestContext requestContext) {
return (this);
}
public void ProcessRequest(HttpContext context) {
context.Response.Write("<h1>Hello World!</h1>");
}
public bool IsReusable { get; set; }
}
<add name="Routing" type="System.Web.Routing.UrlRoutingModule,
system.Web.Routing, Version=3.5.0.0, Culture=neutral,PublicKeyToken=31BF3856AD364E35">
_fooGrid.CurrentCellDirtyStateChanged += new System.EventHandler(this._fooGrid_CurrentCellDirtyStateChanged);
_fooGrid.CurrentCellDirtyStateChanged += _fooGrid_CurrentCellDirtyStateChanged;
using System.ServiceProcess;
namespace MyService {
public partial class MyService : ServiceBase {
public MyService() {
InitializeComponent();
}
protected override void OnStart(string[] args) {
//This will launch a debugger
System.Diagnostics.Debugger.Launch();
//Do the real job
MyWorker.Start();
}
}
}

JK!! Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD...