Peter's Gekko

Sponsors

The Lounge

Wicked Cool Jobs

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
A scenario where vb.net really does a better job than C# .......

Yesterday I visited a local launch of the new Office System. It had a developer track with a very nice talk on creating applications for the new Office suite. The most flexible way to do that is using the Office tools for Visual Studio. What these tools actually do is provide a COM interop bridge to the classical automation object model of Office. Which is nice because that is a rich model. But there is a little downside to it. Most methods of the Office object have loads of parameters, a count of 11 is not unusual. Which would mean that programming such an object with C# means having to provide something for every one of those parameters. A Type.Missing will do, but nevertheless... VB.NET knows how to work with named parameters making it it a little easier to program your Office object, just pass the parameters that do matter as a named parameter and forget about the rest. The speaker (Ernst Peter Tamminga) is a well known VB(A)(.NET) evangelist in the Netherlands, he was happy. Several C# afficionado's in the audience, like myself, were stung by a hornet. But we had no reply except wrapping the Office object up in a “usefull” assembly (with overloaded methods where needed) and target that assembly from our C# code.

Blog on,

Peter


Posted Wed, Oct 22 2003 1:50 PM by pvanooijen

[Advertisement]

Comments

Technology Experience wrote La rivincita di VB.NET su C#
on Thu, May 12 2005 7:48 AM
Technology Experience wrote La rivincita di VB.NET su C#
on Thu, May 12 2005 7:54 AM
Peter's Gekko wrote Creating a COM server with .NET. C# versus VB.NET and the WithEvents keyword
on Tue, Aug 2 2005 9:15 AM
I am a C# guy. This is a matter of personal preference,  I know how to code with VB.NET but just...
Peter's Gekko wrote Creating a COM server with .NET. C# versus VB.NET and the WithEvents keyword
on Fri, Sep 23 2005 10:24 AM
I am a C# guy. This is a matter of personal preference,  I know how to code with VB.NET but just...

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Devlicio.us