There is not much that I like about c#, but one thing that is really handy is the #region ... #endregion statements which allow labelling and collapsing/expanding of code blocks - it is just for editing and display purposes but is very useful when you have a lot of lines of code in one function (I know, I know, you shouldn't have lots of...).
2010/1/4 Alex Rufon <[email protected]>: > My sentiments exactly. > > An in-house joke that we have here in the office is that if you need to dig > into the MSDN library for something ... better bring a backhoe ... > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Raul Miller > Sent: Tuesday, January 05, 2010 12:17 AM > To: Programming forum > Subject: Re: [Jprogramming] C# .NET COM JDLLServer > > On Sun, Jan 3, 2010 at 8:50 AM, Matthew Brand <[email protected]> > wrote: >> I would never claim to know what I am doing wrt to sockets (I barely >> understand them) but I got the c# loop from: >> http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx > > In my experience, microsoft's documentation seems to be written, > quite often, by people that have no idea what the systems in > question are supposed to be used for. > > I have seen important issues go unmentioned. I have seen code that > takes 30+ lines to do something that could have been done in one > or two I have seen documentation which adds nothing which could not > have been gleaned from the names of the things being documented. > Etc. > > I would not assume that their example code is bullet proof. Most > likely the original author ran it through one test case and went > on to document something else. > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- "There is a 75 per cent chance that Al Gore, during the summer months, could be completely fact-free within five to seven years.” http://www.youtube.com/watch?v=X-5XwlcBqF0&feature=player_embedded http://www.youtube.com/watch?v=t8O-E_GN0Kg&feature=player_embedded Climate Scientists predicted UK snowfall thing of the past 10 years ago: http://www.independent.co.uk/environment/snowfalls-are-now-just-a-thing-of-the-past-724017.html Yet here we are, covered in snow! Say no to fascism! Say no to the Carbon tax! ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
