日期:2014-05-17 浏览次数:21088 次
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
public static event Func<int> xx;
static void Main(string[] args)
{
var query = from zhao in Bool值()
from qian in Bool值()
from sun in Bool值()
from li in Bool值()
from wang in Bool值()
from zhou in Bool值()
where !(zhao && qian)
------解决方案--------------------
(zhao
------解决方案--------------------
qian) && sun
where wang
where qian
------解决方案--------------------
(!qian && li && !zhou)
where !wang
------解决方案--------------------
(wang && zhou)
select new { zhao, qian, sun, li, wang, zhou };
int cn = 0;
foreach (var x in query)
{
Console.Write("第{0}个方案:", ++cn);
var items = from p in x.GetType().GetProperties()