Created
July 3, 2018 09:47
-
-
Save kekyo/8fa2b9e3e58536280a92d1cc7c7105b4 to your computer and use it in GitHub Desktop.
Tracing behavior test
This file contains 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.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