Skip to content

Instantly share code, notes, and snippets.

@urasandesu
Created February 1, 2014 12:00
Show Gist options
  • Save urasandesu/8751355 to your computer and use it in GitHub Desktop.
Save urasandesu/8751355 to your computer and use it in GitHub Desktop.
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