Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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?
- var ncLines = new List<NcLine>();
- //Calculate coordinates
- var ncLine = new NcLine
- {
- WorkPart = par.WorkPart,
- SX = par.SX,
- SY = par.SY,
- SZ = par.SZ,
- SC = par.SC,
- EX = par.EX,
- EY = par.EY,
- EZ = par.EZ,
- EC = par.EC,
- Epack = par.ERPack,
- OrbitStyle = par.OrbitStyle
- };
- NcLines.Add(ncLine);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement