Skip to content

Instantly share code, notes, and snippets.

@Konard
Created April 2, 2013 06:07
Show Gist options
  • Save Konard/5290238 to your computer and use it in GitHub Desktop.
Save Konard/5290238 to your computer and use it in GitHub Desktop.
Do what you do until result is expected otherwise analyze unexpected result. (Делай то, что ты делаешь, до тех пор пока результат соответствует твоим ожиданиям. Если получен неожиданный результат - задумайся.)
using System;
namespace Console
{
class Program
{
static void Main(string[] args)
{
dynamic context = null;
Action<object> Action = (x => { return; });
Action<object> Analyze = (x => { return; });
do
{
do
{
Action(context);
}
while (context.IsExpected);
Analyze(context);
}
while (true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment