Chaow Framework 是增强标准 .NET 框架的类结合,允许你编写简单而又强大的代码。
var matchQuery = new { BIRThDate = 1.January(2000), //Create date easily Iam = Sex.Man, LookingFor = Array.Enum(), //Looking for Man, and Woman! (Expand enum) AgeRange = 18.To(25) //Create number range }
可以进行函数式编程和动态编程
Funcfibo = null; fibo = x => fibo(x - 1) + fibo(x - 2); fibo = fibo.When(x => x <= 1, x => x); //Able to do pattern matching fibo = fibo.Memoize(); //Allow you to do memoization var result = fibo(38);