16 using namespace System::Runtime::InteropServices;
20 std::string StringConvert::ManagedToUnmanaged( System::String^
s )
23 std::string output(
reinterpret_cast<const char*
>(
buffer.ToPointer()) );
24 Marshal::FreeHGlobal(
buffer);
29 System::String^ VersionInfo::GetString()
35 int VersionInfo::MajorVersion()
41 int VersionInfo::MinorVersion()
47 int VersionInfo::Patch()
53 double Utility::FractionalYear( System::String^
s )
55 return GeographicLib::Utility::fractionalyear<double>(
56 StringConvert::ManagedToUnmanaged(
s ) );