C# create class with consol input
How to create a class object name (class name=new class) with consol. ReadLine(). I want to type a name on consol as new class and create a object with the typed name using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace namess { public class ain { class person {public string name; public int hight; public person(String personName) {Console.WriteLine("class created"); name=personName; } } static void Main(string[] args) { //enter name for an object Console.Write("type obj name here :"); string objName=Console.ReadLine(); //enter person name Console.Write("type name of person: "); string personName=Console.ReadLine(); //create object person objName=new person(personName); } } }