A great C# example of declarative vs. imperative programming is LINQ. With imperative programming, you tell the compiler what you want to happen, step by step. ... The following example of imperative programming in MSDN, loops through the numbers 1 through 10, and finds the even numbers.
Bekijk gecachete versie