'2010/01'에 해당되는 글 3건

  1. 2010/01/05 인공지능 오목 (1)
  2. 2010/01/02 WMP 실시간 싱크 가사
  3. 2010/01/01 C#, LINQ IQueryable.Where의 조건을 쉽게 만들기
작업물2010/01/05 01:05

Omok.exe

닷넷프레임워크 3.5가 필요합니다.

'작업물' 카테고리의 다른 글

인공지능 오목  (1) 2010/01/05
잡스런 백업  (0) 2009/12/30
Posted by orange code
언젠가는 만들자2010/01/02 21:47
wmp플러그인 작성도 배웠겠다..
언젠가.. 만듭니다

'언젠가는 만들자' 카테고리의 다른 글

WMP 실시간 싱크 가사  (0) 2010/01/02
볼륨 자동 설정 프로그램  (0) 2009/04/14
라이어 게임  (0) 2009/04/09
Posted by orange code
http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/925b245d-5529-4a64-8cd4-4bc83ee6fe7a/
 public static class PredicateBuilder
{
    public static Expression<Func<T, bool>> Make<T>() { return null; }
    public static Expression<Func<T, bool>> Make<T>(this Expression<Func<T, bool>> predicate)
    {
        return predicate;
    }
    public static Expression<Func<T, bool>> MakePredicate<T>(this IQueryable<T> source)
    {
        return null;
    }
    public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> expr, Expression<Func<T, bool>> or)
    {
        if (expr == null) return or;
        var invokedExpr = Expression.Invoke(or, expr.Parameters.Cast<Expression>());
        return Expression.Lambda<Func<T, bool>>(Expression.Or(expr.Body, invokedExpr), expr.Parameters);
    }
    public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> expr, Expression<Func<T, bool>> and)
    {
        if (expr == null) return and;
        var invokedExpr = Expression.Invoke(and, expr.Parameters.Cast<Expression>());
        return Expression.Lambda<Func<T, bool>>(Expression.And(expr.Body, invokedExpr), expr.Parameters);
    }
}
Posted by orange code