I came to know that using Reflection we can create objects without using “new” keyword. So I wanted to know are there any differences in them or any particular scenarios to use Reflection. Because till now i didnt create or seen any of the code creating object with reflection.
Why using ‘new’ became so used and reflection not.
You’d use reflection only when you want to instantiate a type you based on its name (a string) or a type that you don’t have access at compile time (e.g. a plugin). You wouldn’t want to use it in place of
newto instantiate types in normal conditions.