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 ? initializing the memory ?
- As per my understanding, the first method looks completely redundant to me. If programmer knows data type during design time, he will anyway use the second method.