Is there any difference between following two ways of creating an object.
Student s1 = Activator.CreateInstance<Student>();
Student s1 = new Student();
- Is there any difference in the way constructor is called or in initializing the memory?
- Per my understanding, the first method looks completely redundant. If the programmer knows data type during design time, he will use the second method.