I try to create an XML document
from a recieved List<T>
which T
is the type of the list.
so, the problem is when I try to use a for
loop inside XElement
I get errors.
My idea is ccreating an XML Document
contains elements based on the T
properties
So please how can I use the for
loop inside the XElement
?