CrossSectionPointListToArrayT Method |
Method to extract a specific property from all cross section points.
Namespace:
DHI.Mike1D.CrossSectionModule
Assembly:
DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public T[] ToArray<T>(
Func<ICrossSectionPoint, T> selector
)
Parameters
- selector
- Type: SystemFuncICrossSectionPoint, T
Selector that extracts the specific property
Type Parameters
- T
Return Value
Type:
TExamples
To extract all x coordinates, use:
double[] x = xsBaseRaw.Points.ToArray(point => point.X);
See Also