You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foreach (var o in from toolPathItem in controlPointSolvedInterpolator.GroupedKeyPoints.Concat()
from edgePosition in toolPathItem.ToolAxesSolved.RailPositionOption.AsEnumerable()
from edgeCurve in toolPathItem.ControlPoint.Run.EdgeCurveOption.AsEnumerable()
select (toolPathItem, edgePosition, edgeCurve))
color = RenderPointOnEdge( renderMesh, o.toolPathItem, color, o.edgeCurve, o.edgePosition, d );
doesn't work but
foreach (var o in from toolPathItem in controlPointSolvedInterpolator.GroupedKeyPoints.Concat()
from edgePosition in toolPathItem.ToolAxesSolved.RailPositionOption.AsEnumerable()
from edgeCurve in toolPathItem.ControlPoint.Run.EdgeCurveOption.AsEnumerable()
select new {toolPathItem, edgePosition, edgeCurve})
color = RenderPointOnEdge( renderMesh, o.toolPathItem, color, o.edgeCurve, o.edgePosition, d );
does. I would have to do
foreach (var o in from toolPathItem in controlPointSolvedInterpolator.GroupedKeyPoints.Concat()
from edgePosition in toolPathItem.ToolAxesSolved.RailPositionOption.AsEnumerable()
from edgeCurve in toolPathItem.ControlPoint.Run.EdgeCurveOption.AsEnumerable()
select (toolPathItem : toolPathItem, edgePosition:edgePosition, edgeCurve:edgeCurve))
color = RenderPointOnEdge( renderMesh, o.toolPathItem, color, o.edgeCurve, o.edgePosition, d );
to get the tuple version working. This is a bit unfortunate as the ValueTuple version is more efficient but the code is much uglier. Can we please have automatic tuple name generation just like with anonymous types?
The text was updated successfully, but these errors were encountered:
I just realized that this
doesn't work but
does. I would have to do
to get the tuple version working. This is a bit unfortunate as the ValueTuple version is more efficient but the code is much uglier. Can we please have automatic tuple name generation just like with anonymous types?
The text was updated successfully, but these errors were encountered: