Click or drag to resize

CoordinatePartTryParse Method (String, CoordinatePart)

Attempts to parse a string into a CoordinatePart.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static bool TryParse(
	string value,
	out CoordinatePart coordinatePart
)

Parameters

value
Type: SystemString
CoordinatePart string
coordinatePart
Type: CoordinateSharpCoordinatePart
CoordinatePart object to populate

Return Value

Type: Boolean
boolean
Examples
The following example demonstrates how to parse a latitude from a string.
CoordinatePart cp;
if(CoordinatePart.TryParse("N 32.891º", out cp))
{
    Console.WriteLine(cp); //N 32º 53' 28.212"
}
See Also