×

C# Tutorial

Basics of .Net

C# Basics

C# Fundamentals

C# Operators

C# Loops

C# Type Conversions

C# Exception Handling

C# String Class

C# Arrays

C# List

C# Stack

C# Queue

C# Collections

C# Character Class

C# Class and Object

C# Namespaces

C# Delegates

C# Constructors

C# Inheritance

C# Operator Overloading

C# Structures

C# File Handling

C# Convert.ToInt32()

C# Int32 (int) Struct

C# DateTime Class

C# Uri Class

C# Database Connectivity

C# Windows

C# Other Topics

C# Q & A

C# Programs

C# Find O/P

C# - Convert String to Lowercase

Given a string, we have to convert it to lowercase using C# program.
[Last updated : March 20, 2023]

To convert a given string to lowercase, we use String.ToLower() method.

Example

1) Input String: "This is india" then it will convert into : "this is india".
2) Input String: "This Is India" then it will convert into : "this is india".
3) Input String: "this is india" then it will convert into : "this is india".
4) Input String: "tHIS iS iNDIA" then it will convert into : "this is india".

String.ToLower()

The String.ToLower() method returns lowercase converted string.

Syntax

String String.ToLower();

C# program to convert string to lowercase

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1 {
  class Program {
    static void Main() {
      String str1;
      String str2;

      Console.Write("Enter string : ");
      str1 = Console.ReadLine();

      str2 = str1.ToLower();

      Console.WriteLine("Converted string is: " + str2);
    }
  }

}

Output

Enter string : This Is India
Converted string is: this is india

C# Basic Programs »

Advertisement
Advertisement

Comments and Discussions!

Load comments ↻


Advertisement
Advertisement
Advertisement

Copyright © 2025 www.includehelp.com. All rights reserved.