コード例 #1
0
 public Position(string lat, string ns, string lon, string ew)
 {
     Latitude            = ParseNmeaCoordinateElement(lat);
     LatitudeHemisphere  = MessageFormatting.ParseOneLetterEnumByValue <NorthSouth>(ns);
     Longitude           = ParseNmeaCoordinateElement(lon);
     LongitudeHemisphere = MessageFormatting.ParseOneLetterEnumByValue <EastWest>(ew);
 }
コード例 #2
0
 public static IMessageCompassValue FromMessageParts(string svalue, string smagneticortrue)
 {
     return(Create(double.Parse(svalue), MessageFormatting.ParseOneLetterEnumByValue <MagneticOrTrue>(smagneticortrue)));
 }