csharp get type of class

Code Example - csharp get type of class

                
                        Type tp = value.GetType();
                    
                
 

get type of variable csharp

                        
                                string a = "This is a string";
Console.WriteLine(a.GetType())
                            
                        
 

Related code examples