Re: ADO.NET, Sql2K5 - true hack...

Ray Tayek <[email protected]> Thu, 26 Apr 2007 11:32:02 -0700
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
At 01:14 AM 4/24/2007, you wrote:
...
>Is this your code?
>
>int i = 0;
>do
>{
>switch(i)
>{
>case 0: // handle 1st data
>case 1: // handle 2nd data
>case 2: // handle 3rd data
>case 3: // handle 4th data
>default: // throw exception (unexpected) ;)
>}
>i++;
>} while ( dr.NextResult());

pm4ji, but this looks like
http://en.wikipedia.org/wiki/Duff's_device. this is legal in c,
prohibited in java. not sure about c#.

thanks


---
vice-chair http://ocjug.org/

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com