Rosetta Code/Find unimplemented tasks: Difference between revisions

Undo revision 331505 by Tigerofdarkness (talk) Undo cmcontinue and related changes
(→‎{{header|C sharp|C#}}: Fixed cmcontinue for the latest RC)
(Undo revision 331505 by Tigerofdarkness (talk) Undo cmcontinue and related changes)
Tag: Undo
Line 333:
=={{header|C sharp|C#}}==
Using JSON (not parsed, just Regex.)
 
 
To help demonstrate paging, the cmlimit parameter has been omitted from the search query so that 10 rows are returned by default
 
<syntaxhighlight lang="csharp">using System;
using System.Collections.Generic;
Line 364:
 
//detect if more results are available
cmcontinue = Regex.Match(content, @"{""cmcontinue"":""([^""]+)""}", RegexOptions.IgnoreCase).Groups["1"].Value;
// avoid getting: (429) Varnish Rate Limit Exceeded.
pages += 1;
if( pages % 5 == 0 )
{
System.Threading.Thread.Sleep( 500 );
}
} while (cmcontinue.Length > 0);
 
3,028

edits