Topics

Csharp String

About this topic: Articles tagged __TAG__

Showing 60 articles

Topics

Articles

Showing 60 articles

How-tos How to Convert Double to String in C# In this guide, we will learn how we can convert a double into a string in C#. How-tos How to Convert a String to Boolean in C# This article introduces how to convert a string to boolean in C#. It includes ToBoolean() method and TryParse() method. How-tos How to Format a String as a Telephone Number in C# This article explains how to format a string as a telephone number in C#. How-tos How to Remove a Character From a String in C# Learn how to remove one character or a selected set from a C# string with string.Replace(), string.Split() and string.Join(), Regex.Replace(), or LINQ. How-tos How to Convert Enum to String in C# Convert an enum value to its member name with ToString(), or use DescriptionAttribute and a switch mapping for custom display labels. How-tos Carriage Return in C# In this article, we'll learn carriage return in a string in C#. How-tos How to Add a Newline to a String in C# Learn three ways to add a line break to a C# string: use ` `, `Environment.NewLine`, or replace a marker in existing text. How-tos How to Convert a JSON String to a JObject in C# Parse JSON text into a JObject in C# with Newtonsoft.Json, read nested values, handle parsing errors, and serialize changes. How-tos How to Reverse a String in C# Learn how to reverse a string in C How-tos How to Check if a String Is Null or Empty in C# Learn how to check if a string is null or empty in C How-tos String Tokenizer in C# Learn how to effectively tokenize strings in C How-tos How to Remove HTML Tags From a String in C# In this article, we explore effective methods to remove HTML tags from a string in C How-tos How to Find Substring in a String in C# Learn how to find a substring in a string using C How-tos How to Read a File to String in C# Learn how to read a file to a string in C How-tos C# Capitalize First Letter This tutorial teaches how to capitalize the first letter of a string in C How-tos How to Split String by String in C# This tutorial teaches how to split a string by using another string in C How-tos How to Find Leftmost String in C# Discover how to find the leftmost string in C How-tos How to Convert String to Datetime in C# Learn how to convert a string to a DateTime in C How-tos How to Convert Char Array to Strings in C# This article will discuss how to convert char arrays to strings in C How-tos How to Convert a String to a Byte Array in C# Learn how to convert a string to a byte array in C How-tos How to Use Strings in Switch Statement in C# This article introduces how to use strings in switch statements in C How-tos How to Remove Quotes From String in C# Learn how to effectively remove quotes from strings in C How-tos How to Write a Multiline String Literal in C# This article explores how to write multiline string literals in C How-tos How to Convert List<string> to String in C# There are 3 main methods that can be used to convert a List to a string variable in C#, the LINQ Aggregate method, the String.Join() function and StringBuilder class.

← All topics