C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C# String GetTypeCode()The C# GetTypeCode() method is used to get type code of string. It returns the instance of TypeCode which is used to specify the type of an object. Signaturepublic TypeCode GetTypeCode() ParametersIt does not take any parameter. ReturnIt returns type code of string class. C# String GetTypeCode() Method Exampleusing System; public class StringExample { public static void Main(string[] args) { string s1 = "Hello C#"; Console.WriteLine(s1.GetTypeCode()); } } Output: String
Next TopicC# String IndexOf()
|