diff options
author | Hyungju Lee <leee.lee@samsung.com> | 2022-12-02 14:40:28 +0900 |
---|---|---|
committer | 조웅석/Common Platform Lab(SR)/삼성전자 <ws77.cho@samsung.com> | 2022-12-02 15:11:44 +0900 |
commit | 2f8566e664e8ef604bbc48cc0b152479e28a53f6 (patch) | |
tree | bfcf042b00fce8a90e92e5e37d0b9d8537cd2d14 | |
parent | 841a169fddd9c86764e081fbe2c9e56eab583785 (diff) | |
download | launcher-2f8566e664e8ef604bbc48cc0b152479e28a53f6.tar.gz launcher-2f8566e664e8ef604bbc48cc0b152479e28a53f6.tar.bz2 launcher-2f8566e664e8ef604bbc48cc0b152479e28a53f6.zip |
Add ToUpper() ToLower() to preload logic
-rw-r--r-- | Managed/Tizen.Runtime/Preloader.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Managed/Tizen.Runtime/Preloader.cs b/Managed/Tizen.Runtime/Preloader.cs index afb614d..6424e14 100644 --- a/Managed/Tizen.Runtime/Preloader.cs +++ b/Managed/Tizen.Runtime/Preloader.cs @@ -19,6 +19,7 @@ using System.IO; using System.Reflection; using System.Runtime.Loader; using System.Globalization; +using System.Runtime.CompilerServices; namespace Tizen.Runtime { @@ -30,9 +31,11 @@ namespace Tizen.Runtime // than calling out to the OS for culture-aware casing. // However, in certain languages, the following function may be significantly slowed down. // To avoid that kind situation, call it in advance on the candidate process. + [MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)] private static void CheckAsciiCasing() { _ = CultureInfo.CurrentCulture.CompareInfo.Compare("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", CompareOptions.IgnoreCase); + _ = "abc".ToUpper().ToLower(); } public static void Preload() |