List<ObjectCoordinateBase> AllObjects; List<InfoStar> Rows;When I want copy objects from InfoStar class to ObjectCoordinate class, I can use List.AddRange() method.
Node: Import is class, that contains Rows.
Map.AllObjects.AddRange( import.GetAsObjectCoordinateBase() );
And here:public IEnumerable<ObjectCoordinateBase> GetAsObjectCoordinateBase() { List<ObjectCoordinateBase> list = new List<ObjectCoordinateBase>(); this.Rows.ForEach( item => { list.Add( new ObjectCoordinateBase( item ) ); } ); return list; }
Hello Josef,
ReplyDeleteNice blog! I am editor at Java Code Geeks (www.javacodegeeks.com). We have the JCG program (see www.javacodegeeks.com/join-us/jcg/), that I think you’d be perfect for.
If you’re interested, send me an email to eleftheria.drosopoulou@javacodegeeks.com and we can discuss further.
Best regards,
Eleftheria Drosopoulou