String.ToLowerInvariant 메서드
어셈블리: mscorlib(mscorlib.dll)
참고 |
|---|
보안 고려 사항
using System; public class Example { public static void Main() { string[] words = { "Tuesday", "Salı", "Вторник", "Mardi", "Τρίτη", "Martes", "יום שלישי", "الثلاثاء", "วันอังคาร" }; // Display array in unsorted order. foreach (string word in words) Console.WriteLine(word); Console.WriteLine(); // Create parallel array of words by calling ToUpperInvariant. string[] lowerWords = new string[words.Length]; for (int ctr = words.GetLowerBound(0); ctr <= words.GetUpperBound(0); ctr++) lowerWords[ctr] = words[ctr].ToLowerInvariant(); // Sort the words array based on the order of lowerWords. Array.Sort(lowerWords, words, StringComparer.InvariantCulture); // Display the sorted array. foreach (string word in words) Console.WriteLine(word); } } // The example displays the following output: // Tuesday // Salı // Вторник // Mardi // Τρίτη // Martes // יום שלישי // الثلاثاء // วันอังคาร // // Mardi // Martes // Salı // Tuesday // Τρίτη // Вторник // יום שלישי // الثلاثاء // วันอังคาร
Windows 7, Windows Vista SP1 이상, Windows XP SP3, Windows XP SP2 x64 버전, Windows Server 2008(Server Core는 지원되지 않음), Windows Server 2008 R2(Server Core는 SP1 이상에서 지원됨), Windows Server 2003 SP2
.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
참고