I can't create a List<T>

I am trying to make a variable that type is DocumentFormat.OpenXml.ListValue but every time I try an create it it gives me this error , I tried to look it up online but couldn’t find any help. Anyone has an idea what could be causing this?
Thank you in advance!

Looks like this is constrained to OpenXmlSimpleType

I see, what’s the solution in that case?

Hi,

Can you try as the following?

DocumentFormat.OpenXml.ListValue<DocumentFormat.OpenXml.StringValue>

img20211106-1

Regards,

2 Likes

Seems like it’s working, one quick question do I initialize it and declare its values the same way I do for List?

Hi,

Hope the following helps you.

img20211106-2

Regards,

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.