How to "load" data into a record list using C#

How to "load" data into a record list using C#

  

Hello!


I am trying to create an extension code using C#. I need it to output a Record List variable. However, I could not figure out how to load the data into the output Record List Variable in C#. I am new to C# and I probably am missing something here.

Here is a sample code:

BEGIN CODE

ssOutString = new RLTextArrayRecordList();

for(int i = 0; i < Output.Length; i++)
            {
                ssOutString.CurrentRec.ssSTTextArray.ssText = Output[i];
                ssOutString.Advance();
            }

END CODE

Thank you!

Solution

hi Michale,

you can use array of collection in c#

below are the example with test list


            List<string> testelements = new List<string>();
            foreach (testelementsxmlnode node in testcollection)
            {
                testelements.Add("test1");
            }

i think this worked for you.  

Solution

cv sharma wrote:

hi Michale,

you can use array of collection in c#

below are the example with test list


            List<string> testelements = new List<string>();
            foreach (testelementsxmlnode node in testcollection)
            {
                testelements.Add("test1");
            }

i think this worked for you.  

Thank you!

It works now.