C#语言中文课程的No1
class WrapFatory { public Box WrapProduct(Func<Product> getProduct) { Box box = new Box; Product product = getProduct.Invoke(); box.Product = product; return box; } }