Optional Parameters in C#
Visual Basic.NET allows optional parameters, whereas C# does not. If a method is written in VB.NET with optional parameters, how do you call it from C# code without specifying the default value for each optional parameter? Use the
Type.Missing
construct.
Example
file.Save(Type.Missing);