Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# type of string

//Exampled String
string str = "MyString";

//Getting Type of "MyString"
string typeOfStr = str.GetType().ToString();
//Show our Type
Console.WriteLine(typeOfStr);

// Or in short:
Console.WriteLine(str.GetType());
 
PREVIOUS NEXT
Tagged: #type #string
ADD COMMENT
Topic
Name
1+2 =