C# String ToLowerInvariant

Description

String ToLowerInvariant returns a copy of this String object converted to lowercase using the casing rules of the invariant culture.

Syntax

String.ToLowerInvariant has the following syntax.


public string ToLowerInvariant()

Returns

String.ToLowerInvariant method returns The lowercase equivalent of the current string.

Example

The following example defines a string array that contains a single word in a number of languages.


using System;/*from  www. ja  v  a 2 s .c o  m*/

public class Example
{
   public static void Main()
   {
      string words = "Tuesday";
      Console.WriteLine(words.ToLowerInvariant());
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version