C# (Sharp) Programming Language Question:

How do I simulate optional parameters to COM calls?

Tweet Share WhatsApp

Answer:

You must use the Missing class and pass Missing.Value (in System.Reflection) for any values that have optional parameters.

Download C# (Sharp) Programming Language PDF Read All 163 C# (Sharp) Programming Language Questions
Previous QuestionNext Question
How do you directly call a native function exported from a DLL? The C# keyword .int. maps to which .NET type?