Question Fill List with all data from another list.

BartusZak

New member
Joined
Nov 17, 2016
Messages
2
Programming Experience
Beginner
I have a list.

C#:
[COLOR=#1D2129][FONT=Helvetica]List<string>[] list = myListFiller();  
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]

[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]public List<string>[] myListFiller()
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        {
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]             (...)
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]           return list;
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        }
[/FONT][/COLOR]



and other list:

C#:
[COLOR=#1D2129][FONT=Helvetica]private List<Cwiczenie> mCwiczenia;
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]

[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]class Cwiczenie
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]    {
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        public string Cwiczenie_v { get; set; }
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        public string IloscSerii_v { get; set; }
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        public string IloscPowtorzen_v { get; set; }
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]        public byte [] Image {get; set;}
[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]

[/FONT][/COLOR]
[COLOR=#1D2129][FONT=Helvetica]    }
[/FONT][/COLOR]



I WANT TO FILL List<Cwiczenie> mCwiczenia with all data from List<string>[] list.




Can anyone help me?
 
Your description of the problem is clearly in adequate. What data exactly is in the first list? Is it just Cwiczenie_v values? Just IloscSerii_v values? All three of the string values for a Cwiczenie object? Does it also include the Image data? We can't read your mind. You need to provide us with ALL the relevant information. If you're asking us how to work with data then we have to know what that data is.
 
Back
Top Bottom