I almost never use arrays so every time I need to work with them it seems to be a struggle. I’m trying to convert some C# code that is like this:
return new IRawElementProviderSimple[] { };
That is one line in a method that is in a file that I created using the paste as C#. But the generated code gets a compiler error. Here is the generated code:
exit new IRawElementProviderSimple[];
But it generates this compiler error:
C:\Users\mtiede\Documents\Visual Studio 2010\Projects\SW\GuardianEditObservation\GuardianAutoCompleteBox\AutoCompleteBox\GuardianAutoCompleteBoxAutomationPeer.pas(306,40): error PE50: Invalid number of parameters, >= 1 expected
What is the error message trying to tell me and what syntax should I use instead?