Click or drag to resize

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
C#
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: T
Examples
To extract all x coordinates, use:
double[] x = xsBaseRaw.Points.ToArray(point => point.X);
See Also