Created
February 18, 2014 12:45
-
-
Save urasandesu/9070256 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Prig; | |
using Urasandesu.Prig.Framework; | |
namespace program1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("★入れ替え前: {0}", DateTime.Now); | |
using (new IndirectionsContext()) | |
{ | |
var count = 0; | |
PDateTime.NowGet.When(() => 5 <= ++count).Body = () => new DateTime(2013, 12, 23, 11, 22, 33, 44); | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); // ------- これ以降が変わる | |
Console.WriteLine("★入れ替え中: {0}", DateTime.Now); | |
} | |
Console.WriteLine("★戻し: {0}", DateTime.Now); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment