Skip to content

Instantly share code, notes, and snippets.

@kekyo
Created July 3, 2018 09:47
Show Gist options
  • Save kekyo/8fa2b9e3e58536280a92d1cc7c7105b4 to your computer and use it in GitHub Desktop.
Save kekyo/8fa2b9e3e58536280a92d1cc7c7105b4 to your computer and use it in GitHub Desktop.
Tracing behavior test
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp2
{
class CalendarControl
{
private readonly DateTime target;
public CalendarControl(string targetYear, string targetMonth)
{
target = DateTime.ParseExact(targetMonth, "MMM", CultureInfo.CurrentCulture);
}
public override string ToString() => $"{target}";
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine(
string.Join(",", args.Select(arg => new CalendarControl("2018", arg))));
;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment