日期:2014-05-17 浏览次数:21320 次
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args) { GetUsableResTimeRange(); }
internal static void GetUsableResTimeRange()
{
const string string1 = "abc";
var dt = DateTime.Now;
var lst1 = new List<string>();
var lst2 = lst1.Where(str => str == string1 && str.ToString() == dt.ToString());
var string2 = lst1.FirstOrDefault(nouse => lst2.All(str => dt.ToString() != str.ToString()));
}
}
}