C# Compiler Line Limit
April 1st, 2004
Well I found out today that the C# compiler only allows 2046 characters on one line. I wonder why this is the case?
Why was I putting 2046+ characters on one line you ask? Well I was pasting in a rather large error message so I could play an April fools joke on Richard who was kind enough to roll out code on April 1st. Nothing like having the CEO generate a hundred or so errors on the code you just rolled out!
Of course Richard being the astute debugging machine that he is, caught on to the joke pretty quickly.
Stack Trace:
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaiseAprilFoolsEvent(IFoolRichard target, String gotcha)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
|
