C# Developers' Journal (original) (raw)

11:45p

Optional parameters for a com object method Hi there,

I am doing some COM interop. Specifically, I'm using tlbimp to create a tlb for a VB6 COM DLL. I'm then instantiating this COM object and calling one of its methods from a C# ASP.Net page. My problem is that this method has optional parameters, but c# ignores this and forces me to pass all of the parameters. I assume this is due to the fact that c# itself doesn't support optional parameters. Anybody know how you're supposed to deal with this situation? Any and all help would be most appreciated.

Current Mood: okay