原创 Func

interface IRepository<T> where T:class    {        IEnumerable<T> FindAll(Func<T, bool> exp);    } Func<T, bool> exp1、F

原创 asp.net調用windows服務

using System.ServiceProcess; System.ServiceProcess.ServiceController[] serviceController = System.ServiceProcess.Ser

原创 Func<T, bool>

interface IRepository<T> where T:class    {        IEnumerable<T> FindAll(Func<T, bool> exp);    } Func<T, bool> exp1、F

原创 字典結合委託的Demo

class CommandHandler2     {         /// <summary>         /// The dictionary contains all the command