a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
289 B
C#
17 lines
289 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace Test
|
|
{
|
|
class MainClass
|
|
{
|
|
public static void Main ()
|
|
{
|
|
DateTime junk = DateTime.Today;
|
|
var results = from item in "abcd"
|
|
let parsed = DateTime.TryParse ("today", out junk)
|
|
select parsed ? junk : DateTime.Now;
|
|
}
|
|
}
|
|
}
|