How to create a Dotnet String[] in C/AL

jwilderjwilder Posts: 247Member
I ham using the C# Amazon .dll to send inventory quantities to Amazon. To instantiate the config.SetUserAgentHeader function there are four parameters which are String, String, String and String[]. So the 4th parameter is looking for an Array of strings. That 4th parameter needs to be a Dotnet type of an array of strings. How do I do this in C/AL?
ci3pby920b2c.png


Answers

  • lubostlubost Posts: 400Member
    System.Collections.ArrayList.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
  • jwilderjwilder Posts: 247Member
    Actually what I am looking for is a params String[]. In C# you can simply do something like this:
    "<Parameter 1>", "<Parameter 2>"
    But in NAV it is expecting one dotnet paramter of params String[].

    Any thoughts?
Sign In or Register to comment.