Exemple #1
0
        private static void ResetIcuVersionInfo()
        {
            IcuVersion = 0;
            _IcuPath   = null;

#if !NET40
            NativeMethodsHelper.Reset();
            var icuInfo = NativeMethodsHelper.GetIcuVersionInfoForNetCoreOrWindows();

            if (icuInfo.Success)
            {
                _IcuPath   = icuInfo.IcuPath.FullName;
                IcuVersion = icuInfo.IcuVersion;
            }
#endif
        }
        private static void ResetIcuVersionInfo()
        {
            Trace.WriteLineIf(Verbose, "icu.net: Resetting ICU version info");
            IcuVersion = 0;
            _IcuPath   = null;

#if !NET40
            NativeMethodsHelper.Reset();
            var icuInfo = NativeMethodsHelper.GetIcuVersionInfoForNetCoreOrWindows();

            if (icuInfo.Success)
            {
                _IcuPath   = icuInfo.IcuPath.FullName;
                IcuVersion = icuInfo.IcuVersion;
            }
#endif
        }