Oh my god!
I VOTE (1) !!!!!
(I've never seen .NET code) ;-)

> On Wed, 12 Jan 2005 13:47:48 +0100 (CET), Gert-Jan de Boer
> <[EMAIL PROTECTED]> wrote:
>> Well, my vote goes to 1 to then.
>> And you seriously mean its C# style? :x
>
> Not 100% exactly C# style (that also depends on the programmer, of
> course) but take a look at this piece of code from an MSDN article:
>
>     // Create a file and store the application settings.
>     public void Close()
>     {
>         using(BinaryWriter binWriter =
>             new BinaryWriter(File.Open(fileName, FileMode.Create)))
>         {
>             binWriter.Write(aspectRatio);
>             binWriter.Write(lookupDir);
>             binWriter.Write(autoSaveTime);
>             binWriter.Write(showStatusBar);
>         }
>     }
>
> The whole thing is in:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiobinarywriterclasstopic.asp
>



Reply via email to