I'm trying to create a library to reference some Powerscript from within a C# application. I'm able to successfully compile within PowerBuilder, but when I try to deploy this target and create a dll, I get the following error.
[LIBRARY_NAME]_[NON_VISUAL_OBJECT_NAME]_wrapper.cs(1647,23): error CS0051: Inconsistent accessibility: parameter type 'ref c__[STRUCTURE_2_NAME][]' is less accessible than method '[NAMESPACE].[OBJECT_NAME].[METHOD_NAME]([NAMESPACE_NAME].[STRUCTURE_1_NAME][], string, ref string, ref c__[STRUCTURE_2_NAME][], ref string)'
The method is public because another object needs to be able to call this method, and I need to pass the structure by reference because the method makes changes to the object and I already have another return value.
What can I do to get this code to compile?
EDIT FOR CLARITY: I am passing in an array of structures for both [STRUCTURE_1_NAME] and [STRUCTURE_2_NAME]