CoordinatePartTryParse(String, CoordinatePart) Method
Attempts to parse a string into a CoordinatePart.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static bool TryParse(
string value,
out CoordinatePart coordinatePart
)
- value String
- CoordinatePart string
- coordinatePart CoordinatePart
- CoordinatePart object to populate
Booleanboolean
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"
}