String Gettypecode() - C# Tutorial
C# Course / Strings / String Gettypecode()

String Gettypecode()

BLUF: Mastering String Gettypecode() is essential for building robust applications with the .NET ecosystem. This tutorial provides clear explanations and practical examples to help you understand and apply this C# concept.
Enterprise Development Tip: String Gettypecode()

C# is a powerful, modern language for enterprise solutions. Discover how String Gettypecode() enhances your development workflow in the guide below.

The C# GetTypeCode function is employed to retrieve the type code of a string, providing an instance of TypeCode that specifies the object's type.

Signature

Example

public TypeCode GetTypeCode()

Parameters

It does not take any parameter.

Return

It returns type code of string class.

C# String GetTypeCode Method Example

Example

using System;  
    public class StringExample  
    {  
        public static void Main(string[] args)  
        {  
          string s1 = "Hello C#";
          Console.WriteLine(s1.GetTypeCode());
        }  
    }

Output:

Output

String

Input Required

This code uses input(). Please provide values below:

Logic Practice
Install Logic Practice
Add to home screen for a faster app-like experience