Why doesn’t C# have VB.NET’s ‘with’ operator?

Many people, including the C# language designers, believe that ‘with’ often harms readability, and is more of a curse than a blessing. It is clearer to declare a local variable with a meaningful name, and use that variable to perform multiple operations on a single object, than it is to have a block with a sort of implicit context.

For more information, see the Ask a C# Language Designer page.

[Author: Jon Skeet]