Boolean.ToString(IFormatProvider) Method in C# Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Boolean.ToString(IFormatProvider) Method is used to convert the value of the current instance to its equivalent string representation that is either "True" or "False" Syntax: public string ToString (IFormatProvider provider); Parameters: This method takes an object of type IFormatProvider which is reserved. Return Value: This method returns the TrueString if the value of this instance is true, or FalseString if the value of this instance is false. Example: csharp // C# program to demonstrate // Boolean.ToString(IFormatProvider) // Method using System; using System.Globalization; class GFG { // Main Method public static void Main() { // declaring and initializing // Boolean value bool s1 = true; // creating and initializing // the object of CultureInfo CultureInfo provider = new CultureInfo("en-us"); // Using the method string str = s1.ToString(provider); // Display the value Console.WriteLine("The Value is {0} and provider is {1}", str, provider.Name); } } Output: The Value is True and provider is en-US Note: The provider parameter is reserved as it will not contribute anything in the execution of this method. This means this method, unlike most methods with a provider parameter, does not reflect culture-specific settings. Reference: https://learn.microsoft.com/en-us/dotnet/api/system.boolean.tostring?view=netframework-4.8#System_Boolean_ToString_System_IFormatProvider_ Comment More infoAdvertise with us Next Article C# | Boolean.ToString() Method K Kirti_Mangal Follow Improve Article Tags : C# CSharp-method CSharp Boolean Struct Similar Reads C# | Convert.ToString(String, IFormatProvider) Method This method is used to returns the specified string instance and no actual conversion is performed.Syntax: public static string ToString (String, IFormatProvider); Parameters: value: It is the string to return.provider: It is an object that supplies culture-specific formatting information. This para 2 min read C# | Convert.ToString(String, IFormatProvider) Method This method is used to returns the specified string instance and no actual conversion is performed.Syntax: public static string ToString (String, IFormatProvider); Parameters: value: It is the string to return.provider: It is an object that supplies culture-specific formatting information. This para 2 min read C# | Boolean.ToString() Method This method is used to convert the value of this instance to its equivalent string representation i.e. either "True" or "False". Syntax: public override string ToString (); Return Value: This method returns "True" (the value of the TrueString property) if the value of this instance is true, or "Fals 2 min read C# | Boolean.ToString() Method This method is used to convert the value of this instance to its equivalent string representation i.e. either "True" or "False". Syntax: public override string ToString (); Return Value: This method returns "True" (the value of the TrueString property) if the value of this instance is true, or "Fals 2 min read C# | Convert.ToChar(String, IFormatProvider) Method This method is used to convert the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information. Syntax: public static char ToChar (object value, IFormatProvider provider); Parameters: value: It is an string of length 1 or null. provi 3 min read C# | Convert.ToByte(String, IFormatProvider) Method This method is used to convert the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.Syntax: public static byte ToByte (string value, IFormatProvider provider); Parameters: value: It is a string that contains 4 min read Like