Answers for "c# type from string"

C#
0

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());
Posted by: Guest on September-27-2021
0

c# type from string

Type type = Type.GetType("Namespace.MyClass, MyAssembly");
Posted by: Guest on September-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language