Created
August 21, 2017 23:02
-
-
Save kddlb/7abd1ce8c7d95e9168511fc5c21c7f4c to your computer and use it in GitHub Desktop.
test
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
// Decompiled with JetBrains decompiler | |
// Type: SillyDate.Program | |
// Assembly: SillyDate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
// MVID: 7D76919F-64D5-414B-8485-4C75047D30F9 | |
// Assembly location: C:\Users\kevin\source\repos\SillyDate\SillyDate\bin\Debug\SillyDate.exe | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace SillyDate | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Dictionary<string, int> dictionary = new Dictionary<string, int>() | |
{ | |
{ | |
"year", | |
DateTime.Now.Year | |
}, | |
{ | |
"month", | |
DateTime.Now.Month | |
}, | |
{ | |
"day", | |
DateTime.Now.Day | |
} | |
}; | |
string s = string.Format("{{\"year\":{0},\"month\":{1},\"year\":{2}}}", (object) dictionary["year"], (object) dictionary["month"], (object) dictionary["day"]); | |
Console.WriteLine(s); | |
Console.WriteLine(string.Format("{{\"dateData\": \"{0}\"}}", (object) Convert.ToBase64String(Encoding.UTF8.GetBytes(s)))); | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment