Created
February 1, 2014 12:00
-
-
Save urasandesu/8751355 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()) | |
{ | |
PDateTime.NowGet.Body = () => new DateTime(2014, 1, 1); | |
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