Passing null (?) when multiple method overloads exist

Posted by jquerijero on 23-Sep-2014 13:04

14.1 version of the Infragistics.Document.Excel.Workbook needs an extra parameter to call the Save method. The documentation says pass null for the second to parameter for the default behavior. Doing so will make the call ambiguous with another overload. Casting doesn't work. Any idea? Here are the two overloads. Save (character, Infragistics.Documents.Excel.WorkbookSaveOptions) Save (character, Infragistics.Documents.Core.Packaging.IPackageFactory) According to Infragistics, the original Save(character) should still be there, but it is currently not listed.

Posted by Mike Fechner on 23-Sep-2014 13:08

Did you try to define a variable of the desired target type and pass that to the method?
 
You can assign ? to that variable.

 

All Replies

Posted by Mike Fechner on 23-Sep-2014 13:08

Did you try to define a variable of the desired target type and pass that to the method?
 
You can assign ? to that variable.

 

This thread is closed