tag:blogger.com,1999:blog-15136575.post7865438362741661177..comments2023-10-17T12:00:16.772+01:00Comments on Code rant: C#: How to Record What Gets Written to or Read From a StreamMike Hadlowhttp://www.blogger.com/profile/16441901713967254504noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-15136575.post-25518260858359043832015-07-24T16:53:07.764+01:002015-07-24T16:53:07.764+01:00re. stacked usings, the same applies to any statem...re. stacked usings, the same applies to any statements where curly braces are optional, so you can have:<br /><br />while (true)<br />using (var x = "blah")<br />if (i > t)<br />{ ... }Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-67757584918252094552015-06-11T16:44:54.634+01:002015-06-11T16:44:54.634+01:00/\/\ What Adam said! :)/\/\ What Adam said! :)Rutland Gizzhttps://www.blogger.com/profile/02650089018995603151noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-35908575776997374162015-06-10T13:58:44.106+01:002015-06-10T13:58:44.106+01:00Embarrassingly, what I learnt first from this post...Embarrassingly, what I learnt first from this post is that you can stack using declarations on top of each other and then just open/close curly braces once! :DAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-18451796311830751322015-06-05T14:32:30.550+01:002015-06-05T14:32:30.550+01:00That's pretty neat! Never had a need for strea...That's pretty neat! Never had a need for stream decorator, but I'll remember for future cases.trailmaxhttps://www.blogger.com/profile/10383345657816134349noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-10413675914536973422015-06-05T12:40:28.272+01:002015-06-05T12:40:28.272+01:00Another useful case for decorating Stream is throu...Another useful case for decorating Stream is throughput measurement, especially helpful with network streams.Павел Мартыновhttps://www.blogger.com/profile/02734222865871007842noreply@blogger.com