Answers for "get class from type c#"

C#
3

c# get class name by type

typeof(T).Name // class name, no namespace
typeof(T).FullName // namespace and class name
typeof(T).Namespace // namespace, no class name
Posted by: Guest on December-15-2020
3

get type of variable c#

string a = "This is a string";
Console.WriteLine(a.GetType())
Posted by: Guest on May-13-2020
0

c# get type of class

Type tp = value.GetType();
Posted by: Guest on September-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language