
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Convert the value of the specified string to its equivalent Unicode character in C#
To convert the value of the specified string to its equivalent Unicode character, the code is as follows −
Example
using System; public class Demo { public static void Main(){ bool res; Char ch; res = Char.TryParse("10", out ch); Console.WriteLine(res); Console.WriteLine(ch.ToString()); } }
Output
This will produce the following output −
False
Example
Let us now see another example −
using System; public class Demo { public static void Main(){ bool res; Char ch; res = Char.TryParse("P", out ch); Console.WriteLine(res); Console.WriteLine(ch.ToString()); } }
Output
This will produce the following output −
True P
- Related Articles
- Convert the specified string representation of a logical value to its Boolean equivalent in C#
- Convert the ASCII value sentence to its equivalent string in C++
- Convert a specified value to an equivalent Boolean value in C#
- Convert the value of the specified Decimal to the equivalent 16-bit unsigned integer in C#
- Indicate whether the specified Unicode character is white space in C#
- Check whether the specified Unicode character is a punctuation mark in C#
- Match Unicode character specified by the hexadecimal number XXXX.
- Convert the specified Windows file time to an equivalent local time in C#
- Check whether the specified Unicode character is a letter or a decimal digit in C#
- How to return a number indicating the Unicode value of the character?
- Swift Program to convert the string into an array of characters based on the specified character
- PHP – How to get the Unicode point value of a given character?
- Check whether the Unicode character is a separator character in C#
- How to print Unicode character in C++?
- How to convert an integer to a unicode character in Python?

Advertisements