Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. I need to add this same ncLine to the list 2 times. But the second time I need to set Epack to par.EFPack. Whats the cleanest way to to that?
  2.  
  3.  
  4. var ncLines = new List<NcLine>();
  5.  
  6. //Calculate coordinates
  7. var ncLine = new NcLine
  8. {
  9. WorkPart = par.WorkPart,
  10. SX = par.SX,
  11. SY = par.SY,
  12. SZ = par.SZ,
  13. SC = par.SC,
  14. EX = par.EX,
  15. EY = par.EY,
  16. EZ = par.EZ,
  17. EC = par.EC,
  18. Epack = par.ERPack,
  19. OrbitStyle = par.OrbitStyle
  20. };
  21.  
  22. NcLines.Add(ncLine);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement